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 (
    4297, 37884, 44573, 38556, 5594, 41132, 
    47177, 44565, 44937, 33835, 43665, 
    41118, 41378, 40921, 32315, 24713, 
    37417, 43653, 48676, 45585, 28439, 
    32314, 44562, 33160, 45575, 44935, 
    32709, 37414, 46153, 6471, 46590, 4286
  ) 
  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.05228

JSON explain

{
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "cscart_product_prices.product_id",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "cscart_product_prices",
              "access_type": "ref",
              "possible_keys": [
                "usergroup",
                "product_id",
                "lower_limit",
                "usergroup_id"
              ],
              "key": "lower_limit",
              "key_length": "3",
              "used_key_parts": ["lower_limit"],
              "ref": ["const"],
              "rows": 25327,
              "filtered": 8.593746185,
              "attached_condition": "cscart_product_prices.lower_limit <=> 1 and cscart_product_prices.product_id in (4297,37884,44573,38556,5594,41132,47177,44565,44937,33835,43665,41118,41378,40921,32315,24713,37417,43653,48676,45585,28439,32314,44562,33160,45575,44935,32709,37414,46153,6471,46590,4286) and cscart_product_prices.usergroup_id in (0,1)"
            }
          }
        ]
      }
    }
  }
}

Result

product_id price
4286 150000.0000
4297 200000.0000
5594 210000.0000
6471 190000.0000
24713 220000.0000
28439 165000.0000
32314 109000.0000
32315 169000.0000
32709 175000.0000
33160 50000.0000
33835 110000.0000
37414 380000.0000
37417 125000.0000
37884 330000.0000
38556 484000.0000
40921 200000.0000
41118 499000.0000
41132 499000.0000
41378 207000.0000
43653 94000.0000
43665 80000.0000
44562 325000.0000
44565 280000.0000
44573 200000.0000
44935 195000.0000
44937 195000.0000
45575 280000.0000
45585 365000.0000
46153 468000.0000
46590 499000.0000
47177 255000.0000
48676 210000.0000