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 (
    33723, 6542, 1714, 857, 1412, 1123, 2513, 
    2966, 4269, 48849, 5761, 27370, 29700, 
    34678, 48062, 49288, 49281
  ) 
  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.00275

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": 17,
          "filtered": 99.9960556,
          "index_condition": "cscart_product_prices.product_id in (33723,6542,1714,857,1412,1123,2513,2966,4269,48849,5761,27370,29700,34678,48062,49288,49281)",
          "attached_condition": "cscart_product_prices.lower_limit = 1 and cscart_product_prices.usergroup_id in (0,1)"
        }
      }
    ]
  }
}

Result

product_id price
857 2280000.0000
1123 538000.0000
1412 66000.0000
1714 249000.0000
2513 55000.0000
2966 75000.0000
4269 1400000.0000
5761 450000.0000
6542 400000.0000
27370 249000.0000
29700 45000.0000
33723 2500000.0000
34678 800000.0000
48062 4810000.0000
48849 540000.0000
49281 440000.0000
49288 450000.0000