SELECT 
  cscart_product_prices.product_id, 
  MIN(
    IF(
      cscart_product_prices.percentage_discount = 0, 
      cscart_product_prices.price, 
      cscart_product_prices.price - (
        cscart_product_prices.price * cscart_product_prices.percentage_discount
      )/ 100
    )
  ) AS price 
FROM 
  cscart_product_prices 
WHERE 
  cscart_product_prices.product_id IN (
    47599, 21464, 2015, 1836, 2255, 3451, 
    40526, 6555, 25180, 286, 4071, 26604, 
    3004, 3765, 2509, 294, 33718, 2576, 
    26608, 5577, 2414, 2797, 2492, 2302, 
    50233, 47603, 48844, 38560, 6607, 1732, 
    36834, 2448
  ) 
  AND cscart_product_prices.lower_limit = 1 
  AND cscart_product_prices.usergroup_id IN (0, 1) 
GROUP BY 
  cscart_product_prices.product_id

Query time 0.15202

JSON explain

{
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "cscart_product_prices.product_id",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_product_prices",
              "access_type": "ref",
              "possible_keys": [
                "usergroup",
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "key": "lower_limit",
              "key_length": "3",
              "used_key_parts": ["lower_limit"],
              "ref": ["const"],
              "rows": 25327,
              "filtered": 8.585855484,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (47599,21464,2015,1836,2255,3451,40526,6555,25180,286,4071,26604,3004,3765,2509,294,33718,2576,26608,5577,2414,2797,2492,2302,50233,47603,48844,38560,6607,1732,36834,2448) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
286 360000.0000
294 260000.0000
1732 565000.0000
1836 160000.0000
2015 140000.0000
2255 21800000.0000
2302 335000.0000
2414 79000.0000
2448 302500.0000
2492 395000.0000
2509 60000.0000
2576 190000.0000
2797 190000.0000
3004 350000.0000
3451 80000.0000
3765 230000.0000
4071 300000.0000
5577 1080000.0000
6555 590000.0000
6607 480000.0000
21464 400000.0000
25180 270000.0000
26604 200000.0000
26608 300000.0000
33718 3580000.0000
36834 1529000.0000
38560 484000.0000
40526 385000.0000
47599 605000.0000
47603 340000.0000
48844 540000.0000
50233 299000.0000