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 (
    50216, 47597, 18608, 27359, 3713, 37096, 
    27354, 27357, 27358, 27360, 27362, 
    36399, 19386, 27363, 3662, 36339, 3666, 
    637, 2553, 534, 25180, 3004, 47603, 
    37097, 47610, 43459, 43460, 41369, 
    43461, 40928, 43842, 43841
  ) 
  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.00250

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 (50216,47597,18608,27359,3713,37096,27354,27357,27358,27360,27362,36399,19386,27363,3662,36339,3666,637,2553,534,25180,3004,47603,37097,47610,43459,43460,41369,43461,40928,43842,43841)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
534 210000.0000
637 450000.0000
2553 240000.0000
3004 350000.0000
3662 350000.0000
3666 350000.0000
3713 399000.0000
18608 297000.0000
19386 365000.0000
25180 270000.0000
27354 470000.0000
27357 480000.0000
27358 270000.0000
27359 430000.0000
27360 430000.0000
27362 420000.0000
27363 380000.0000
36339 231000.0000
36399 360000.0000
37096 465000.0000
37097 480000.0000
40928 350000.0000
41369 248000.0000
43459 290000.0000
43460 290000.0000
43461 290000.0000
43841 290000.0000
43842 290000.0000
47597 495000.0000
47603 340000.0000
47610 484000.0000
50216 410000.0000