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 (
    1895, 1715, 5547, 43823, 21780, 5548, 
    5549, 46737, 34053, 1713, 5569, 46751, 
    5556, 16607, 46735, 5554, 1897, 858, 
    2113, 2136, 2132, 5551, 40452, 5553, 
    3471, 5567, 39613, 2133, 462, 40454, 
    2135, 40453
  ) 
  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.00211

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 (1895,1715,5547,43823,21780,5548,5549,46737,34053,1713,5569,46751,5556,16607,46735,5554,1897,858,2113,2136,2132,5551,40452,5553,3471,5567,39613,2133,462,40454,2135,40453)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
462 3897000.0000
858 3080000.0000
1713 95000.0000
1715 349000.0000
1895 498000.0000
1897 80000.0000
2113 290000.0000
2132 70000.0000
2133 50000.0000
2135 55000.0000
2136 55000.0000
3471 999000.0000
5547 265000.0000
5548 205000.0000
5549 195000.0000
5551 250000.0000
5553 250000.0000
5554 250000.0000
5556 250000.0000
5567 70000.0000
5569 60000.0000
16607 250000.0000
21780 330000.0000
34053 2500000.0000
39613 590000.0000
40452 590000.0000
40453 590000.0000
40454 590000.0000
43823 315000.0000
46735 350000.0000
46737 210000.0000
46751 190000.0000