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 (
    48839, 630, 41341, 41340, 47922, 47921, 
    41343, 47896, 47924, 47923, 41339, 
    35730, 35731, 631, 2085, 4367, 35729, 
    5455, 637, 5581, 5577, 31872, 35859, 
    5461, 5958, 5476, 189, 4465, 4362, 33606, 
    5959, 47895
  ) 
  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.00555

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 (48839,630,41341,41340,47922,47921,41343,47896,47924,47923,41339,35730,35731,631,2085,4367,35729,5455,637,5581,5577,31872,35859,5461,5958,5476,189,4465,4362,33606,5959,47895)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
189 150000.0000
630 550000.0000
631 1050000.0000
637 450000.0000
2085 480000.0000
4362 845000.0000
4367 2430000.0000
4465 800000.0000
5455 3200000.0000
5461 2200000.0000
5476 1280000.0000
5577 1080000.0000
5581 1080000.0000
5958 1350000.0000
5959 1350000.0000
31872 300000.0000
33606 350000.0000
35729 160000.0000
35730 160000.0000
35731 2000000.0000
35859 800000.0000
41339 310000.0000
41340 295000.0000
41341 285000.0000
41343 310000.0000
47895 319500.0000
47896 315000.0000
47921 285000.0000
47922 320000.0000
47923 295000.0000
47924 315000.0000
48839 159000.0000