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 (
    36474, 4237, 43798, 5270, 5257, 6070, 
    37849, 335, 5726, 41437, 5288, 40809, 
    5228, 37881, 18194, 37300, 4795, 5265, 
    40309, 6371, 38150, 40754, 4279, 47652, 
    37296, 5770, 26849, 31734, 27056, 37294, 
    40807, 41358
  ) 
  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.00344

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 (36474,4237,43798,5270,5257,6070,37849,335,5726,41437,5288,40809,5228,37881,18194,37300,4795,5265,40309,6371,38150,40754,4279,47652,37296,5770,26849,31734,27056,37294,40807,41358)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
335 160000.0000
4237 45000.0000
4279 55000.0000
4795 450000.0000
5228 170000.0000
5257 27540.0000
5265 38556.0000
5270 93636.0000
5288 50609.0000
5726 160000.0000
5770 744800.0000
6070 100000.0000
6371 1090000.0000
18194 162000.0000
26849 230000.0000
27056 298000.0000
31734 1285000.0000
36474 1600000.0000
37294 248000.0000
37296 248000.0000
37300 207000.0000
37849 159000.0000
37881 330000.0000
38150 440000.0000
40309 580000.0000
40754 140400.0000
40807 41000.0000
40809 190000.0000
41358 275000.0000
41437 3749000.0000
43798 162000.0000
47652 645000.0000