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 (
    48813, 45029, 46155, 47878, 47614, 48560, 
    40524, 48836, 44758, 49290, 40713, 
    45241, 41440, 3616, 43477, 2044, 43856, 
    47871, 48551, 49001, 47615, 47612, 
    47870, 48938, 41431, 35685, 41434, 
    41432, 48939, 2042, 48550, 321
  ) 
  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.00134

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "range",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "product_id",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "rows": 33,
          "filtered": 99.9960556,
          "index_condition": "cscart_product_prices.product_id in (48813,45029,46155,47878,47614,48560,40524,48836,44758,49290,40713,45241,41440,3616,43477,2044,43856,47871,48551,49001,47615,47612,47870,48938,41431,35685,41434,41432,48939,2042,48550,321)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
321 5999000.0000
2042 4679000.0000
2044 3635100.0000
3616 6177000.0000
35685 1050000.0000
40524 1595000.0000
40713 1155000.0000
41431 8100000.0000
41432 8100000.0000
41434 6879000.0000
41440 4079000.0000
43477 1390000.0000
43856 1800000.0000
44758 1020000.0000
45029 5500000.0000
45241 6050000.0000
46155 1168000.0000
47612 1254000.0000
47614 1254000.0000
47615 1650000.0000
47870 2000000.0000
47871 2000000.0000
47878 1000000.0000
48550 2260000.0000
48551 2260000.0000
48560 3800000.0000
48813 1200000.0000
48836 1150000.0000
48938 5252000.0000
48939 5400000.0000
49001 1590000.0000
49290 1350000.0000