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, 33725, 1893, 38074, 49164, 48846, 
    1894, 23152, 49873, 1057, 1103, 1102, 
    1104, 398, 1716, 1277, 43824, 34668, 
    34667, 1105, 1107, 854, 43825, 2238, 
    1106, 397, 34669, 34666, 386, 2620, 
    33724, 856
  ) 
  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.00473

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,33725,1893,38074,49164,48846,1894,23152,49873,1057,1103,1102,1104,398,1716,1277,43824,34668,34667,1105,1107,854,43825,2238,1106,397,34669,34666,386,2620,33724,856)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
386 90000.0000
397 86000.0000
398 68000.0000
854 1680000.0000
856 2280000.0000
1057 320000.0000
1102 990000.0000
1103 583000.0000
1104 583000.0000
1105 583000.0000
1106 583000.0000
1107 583000.0000
1277 120000.0000
1716 249000.0000
1893 878000.0000
1894 498000.0000
1896 298000.0000
2238 220000.0000
2620 583000.0000
23152 199000.0000
33724 3500000.0000
33725 2000000.0000
34666 465000.0000
34667 455000.0000
34668 115000.0000
34669 101000.0000
38074 540000.0000
43824 250000.0000
43825 577000.0000
48846 540000.0000
49164 700000.0000
49873 225000.0000