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 (
    5546, 48769, 31630, 37304, 5556, 16607, 
    6060, 2920, 38143, 4440, 5837, 27357, 
    38152, 35249, 27358, 2932, 18258, 46735, 
    14822, 18201, 40824, 2461, 41441, 31909, 
    5554, 31908, 2505, 4441, 6099, 5779, 
    34672, 33177
  ) 
  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.02215

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 (5546,48769,31630,37304,5556,16607,6060,2920,38143,4440,5837,27357,38152,35249,27358,2932,18258,46735,14822,18201,40824,2461,41441,31909,5554,31908,2505,4441,6099,5779,34672,33177)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
2461 104500.0000
2505 110000.0000
2920 382000.0000
2932 335000.0000
4440 25000.0000
4441 25000.0000
5546 214000.0000
5554 250000.0000
5556 250000.0000
5779 269500.0000
5837 318600.0000
6060 80000.0000
6099 50000.0000
14822 165000.0000
16607 250000.0000
18201 183600.0000
18258 25000.0000
27357 480000.0000
27358 270000.0000
31630 42000.0000
31908 100000.0000
31909 100000.0000
33177 1690000.0000
34672 55000.0000
35249 1395000.0000
37304 248000.0000
38143 440000.0000
38152 340000.0000
40824 375000.0000
41441 6399000.0000
46735 350000.0000
48769 99000.0000