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 (
    350, 1044, 351, 3992, 2155, 4373, 23481, 
    36474, 1358, 38136, 3981, 3982, 4383, 
    2248, 36303, 38151, 4384, 36302, 49186, 
    2247, 36308, 4376, 33809, 2152, 38553, 
    1847, 36301, 2251, 36305, 43651, 5632, 
    1841
  ) 
  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.00590

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 (350,1044,351,3992,2155,4373,23481,36474,1358,38136,3981,3982,4383,2248,36303,38151,4384,36302,49186,2247,36308,4376,33809,2152,38553,1847,36301,2251,36305,43651,5632,1841)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
350 6000000.0000
351 6000000.0000
1044 300000.0000
1358 119000.0000
1841 160000.0000
1847 160000.0000
2152 250000.0000
2155 220000.0000
2247 5000000.0000
2248 6000000.0000
2251 15500000.0000
3981 308000.0000
3982 495000.0000
3992 275000.0000
4373 925000.0000
4376 475000.0000
4383 375000.0000
4384 375000.0000
5632 350000.0000
23481 800000.0000
33809 80000.0000
36301 350000.0000
36302 190000.0000
36303 250000.0000
36305 350000.0000
36308 820000.0000
36474 1600000.0000
38136 270000.0000
38151 160000.0000
38553 850000.0000
43651 650000.0000
49186 350000.0000