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 (
    319, 35249, 41441, 33177, 4004, 3764, 
    858, 857, 33214, 41442, 466, 3916, 47085, 
    6556, 462, 4367, 1892, 225, 5455, 33716, 
    3917, 35734, 33717, 36781, 41446, 41435, 
    4266, 2280, 6468, 41422, 2253, 41443
  ) 
  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.00557

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 (319,35249,41441,33177,4004,3764,858,857,33214,41442,466,3916,47085,6556,462,4367,1892,225,5455,33716,3917,35734,33717,36781,41446,41435,4266,2280,6468,41422,2253,41443)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
225 2900000.0000
319 5329000.0000
462 3897000.0000
466 3228000.0000
857 2280000.0000
858 3080000.0000
1892 1399000.0000
2253 21800000.0000
2280 1200000.0000
3764 1230000.0000
3916 1342000.0000
3917 1342000.0000
4004 1595000.0000
4266 1400000.0000
4367 2430000.0000
5455 3200000.0000
6468 1500000.0000
6556 1389000.0000
33177 1690000.0000
33214 1690000.0000
33716 2580000.0000
33717 2580000.0000
35249 1395000.0000
35734 1100000.0000
36781 1609000.0000
41422 1095000.0000
41435 3749000.0000
41441 6399000.0000
41442 6399000.0000
41443 6399000.0000
41446 1690000.0000
47085 2080000.0000