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 (
    41363, 41388, 47610, 4857, 41138, 4868, 
    2640, 41359, 33704, 41014, 4817, 37293, 
    43460, 2639, 3193, 37285, 5757, 41362, 
    49256, 38149, 4821, 4864, 20838, 1518, 
    31943, 41136, 41371, 47605, 2623, 33699, 
    726, 4810
  ) 
  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.00210

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": 33,
          "filtered": 99.9960556,
          "index_condition": "cscart_product_prices.product_id in (41363,41388,47610,4857,41138,4868,2640,41359,33704,41014,4817,37293,43460,2639,3193,37285,5757,41362,49256,38149,4821,4864,20838,1518,31943,41136,41371,47605,2623,33699,726,4810)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
726 465000.0000
1518 350000.0000
2623 280000.0000
2639 200000.0000
2640 320000.0000
3193 220000.0000
4810 330000.0000
4817 380000.0000
4821 380000.0000
4857 295000.0000
4864 275000.0000
4868 395000.0000
5757 425000.0000
20838 360000.0000
31943 236500.0000
33699 315000.0000
33704 275000.0000
37285 207000.0000
37293 220000.0000
38149 440000.0000
41014 450000.0000
41136 499000.0000
41138 499000.0000
41359 275000.0000
41362 275000.0000
41363 275000.0000
41371 248000.0000
41388 207000.0000
43460 290000.0000
47605 340000.0000
47610 484000.0000
49256 480000.0000