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, 35256, 47632, 48823, 46585, 
    47903, 1894, 49873, 6358, 6357, 47597, 
    18608, 1057, 17265, 27359, 17259, 48980, 
    31729, 1538, 15322, 40381, 48557, 119, 
    35167, 36272, 1585, 47824, 35166, 35169, 
    1535, 47600
  ) 
  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.00409

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,35256,47632,48823,46585,47903,1894,49873,6358,6357,47597,18608,1057,17265,27359,17259,48980,31729,1538,15322,40381,48557,119,35167,36272,1585,47824,35166,35169,1535,47600)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
119 250000.0000
1057 320000.0000
1535 235000.0000
1538 295000.0000
1585 375000.0000
1894 498000.0000
1896 298000.0000
6357 300000.0000
6358 350000.0000
15322 225000.0000
17259 206000.0000
17265 206000.0000
18608 297000.0000
27359 430000.0000
31729 260000.0000
35166 462000.0000
35167 484000.0000
35169 495000.0000
35256 390000.0000
36272 352000.0000
40381 240000.0000
46585 230000.0000
47597 495000.0000
47600 310000.0000
47632 473000.0000
47824 495000.0000
47903 425000.0000
48557 495000.0000
48823 400000.0000
48980 450000.0000
49873 225000.0000
50216 410000.0000