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 (
    5992, 1535, 41429, 1765, 47600, 47184, 
    45508, 34675, 6093, 31912, 5782, 47012, 
    3580, 6354, 34670, 31965, 37098, 26892, 
    48998, 1717, 40450, 6364, 37092, 41291, 
    2154, 4513, 5785, 737, 6611, 26880, 
    35740, 41279
  ) 
  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.00196

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 (5992,1535,41429,1765,47600,47184,45508,34675,6093,31912,5782,47012,3580,6354,34670,31965,37098,26892,48998,1717,40450,6364,37092,41291,2154,4513,5785,737,6611,26880,35740,41279)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
737 250000.0000
1535 235000.0000
1717 30000.0000
1765 950000.0000
2154 140000.0000
3580 119000.0000
4513 50000.0000
5782 97900.0000
5785 231000.0000
5992 82000.0000
6093 1650000.0000
6354 250000.0000
6364 590000.0000
6611 48000.0000
26880 54000.0000
26892 61000.0000
31912 80000.0000
31965 420000.0000
34670 39000.0000
34675 45000.0000
35740 235000.0000
37092 195000.0000
37098 85000.0000
40450 230000.0000
41279 80000.0000
41291 450000.0000
41429 1095000.0000
45508 110000.0000
47012 290000.0000
47184 125000.0000
47600 310000.0000
48998 595000.0000