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 (
    33702, 2157, 1519, 45357, 1895, 47654, 
    5832, 47601, 1586, 47658, 3388, 37304, 
    38143, 5837, 27357, 38152, 27358, 40824, 
    49306, 27360, 2471, 41170, 1429, 5834, 
    27362, 6560, 36399, 6561, 4894, 1042, 
    1534, 41231
  ) 
  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.00565

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 (33702,2157,1519,45357,1895,47654,5832,47601,1586,47658,3388,37304,38143,5837,27357,38152,27358,40824,49306,27360,2471,41170,1429,5834,27362,6560,36399,6561,4894,1042,1534,41231)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
1042 400000.0000
1429 280000.0000
1519 280000.0000
1534 235000.0000
1586 375000.0000
1895 498000.0000
2157 280000.0000
2471 214500.0000
3388 210000.0000
4894 435000.0000
5832 211680.0000
5834 211680.0000
5837 318600.0000
6560 290000.0000
6561 290000.0000
27357 480000.0000
27358 270000.0000
27360 430000.0000
27362 420000.0000
33702 275000.0000
36399 360000.0000
37304 248000.0000
38143 440000.0000
38152 340000.0000
40824 375000.0000
41170 225000.0000
41231 320000.0000
45357 215000.0000
47601 310000.0000
47654 500000.0000
47658 480000.0000
49306 480000.0000