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 (
    534, 6559, 41229, 5500, 6554, 46716, 
    2458, 6555, 2255, 26854, 286, 6098, 
    25180, 5226, 405, 2414, 26864, 2797, 
    26846, 36834, 6367, 4460, 933, 1059, 
    6557, 1041, 2567, 25850, 6106, 3975, 
    1835, 2257
  ) 
  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.00296

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 (534,6559,41229,5500,6554,46716,2458,6555,2255,26854,286,6098,25180,5226,405,2414,26864,2797,26846,36834,6367,4460,933,1059,6557,1041,2567,25850,6106,3975,1835,2257)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
286 360000.0000
405 38556.0000
534 210000.0000
933 165000.0000
1041 450000.0000
1059 199000.0000
1835 220000.0000
2255 21800000.0000
2257 21800000.0000
2414 79000.0000
2458 82500.0000
2567 400000.0000
2797 190000.0000
3975 825000.0000
4460 95000.0000
5226 170000.0000
5500 70000.0000
6098 50000.0000
6106 75000.0000
6367 880000.0000
6554 590000.0000
6555 590000.0000
6557 1389000.0000
6559 709000.0000
25180 270000.0000
25850 6000000.0000
26846 260000.0000
26854 66000.0000
26864 47000.0000
36834 1529000.0000
41229 75000.0000
46716 320000.0000