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 (
    49012, 6370, 3288, 49164, 47903, 49230, 
    28159, 43817, 48846, 1894, 23152, 47631, 
    1533, 6372, 49873, 6358, 6357, 41345, 
    41341, 35279, 25318, 47597, 47084, 
    5787, 1767, 3866, 5503, 18608, 2140, 
    2139, 5987, 42255
  ) 
  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.00403

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": 32,
          "filtered": 99.9960556,
          "index_condition": "cscart_product_prices.product_id in (49012,6370,3288,49164,47903,49230,28159,43817,48846,1894,23152,47631,1533,6372,49873,6358,6357,41345,41341,35279,25318,47597,47084,5787,1767,3866,5503,18608,2140,2139,5987,42255)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
1533 195000.0000
1767 250000.0000
1894 498000.0000
2139 60000.0000
2140 96000.0000
3288 1100000.0000
3866 170000.0000
5503 70000.0000
5787 165000.0000
5987 55000.0000
6357 300000.0000
6358 350000.0000
6370 890000.0000
6372 1190000.0000
18608 297000.0000
23152 199000.0000
25318 640000.0000
28159 3700000.0000
35279 275000.0000
41341 285000.0000
41345 550000.0000
42255 540000.0000
43817 439000.0000
47084 65000.0000
47597 495000.0000
47631 583000.0000
47903 425000.0000
48846 540000.0000
49012 390000.0000
49164 700000.0000
49230 943000.0000
49873 225000.0000