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 (
    1896, 50216, 40451, 49588, 2320, 2319, 
    35256, 47632, 45283, 46822, 6659, 50182, 
    48823, 46585, 15457, 40927, 49012, 
    47903, 43817, 1894, 49873, 6358, 6357, 
    41341, 35279, 47597, 1767, 18608, 1057, 
    5790, 17265, 41340
  ) 
  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.00967

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 (1896,50216,40451,49588,2320,2319,35256,47632,45283,46822,6659,50182,48823,46585,15457,40927,49012,47903,43817,1894,49873,6358,6357,41341,35279,47597,1767,18608,1057,5790,17265,41340)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
1057 320000.0000
1767 250000.0000
1894 498000.0000
1896 298000.0000
2319 400000.0000
2320 400000.0000
5790 385000.0000
6357 300000.0000
6358 350000.0000
6659 400000.0000
15457 289000.0000
17265 206000.0000
18608 297000.0000
35256 390000.0000
35279 275000.0000
40451 460000.0000
40927 260000.0000
41340 295000.0000
41341 285000.0000
43817 439000.0000
45283 390000.0000
46585 230000.0000
46822 450000.0000
47597 495000.0000
47632 473000.0000
47903 425000.0000
48823 400000.0000
49012 390000.0000
49588 345000.0000
49873 225000.0000
50182 320000.0000
50216 410000.0000