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 (
    4725, 4726, 4735, 4024, 4020, 4028, 4037, 
    4019, 4029, 4036, 4740, 4739, 4928, 
    4493, 4495, 4496, 4494, 4909
  ) 
  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.00054

JSON explain

{
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "cscart_product_prices.product_id",
      "temporary_table": {
        "table": {
          "table_name": "cscart_product_prices",
          "access_type": "range",
          "possible_keys": [
            "usergroup",
            "product_id",
            "lower_limit",
            "usergroup_id"
          ],
          "key": "usergroup_id",
          "key_length": "6",
          "used_key_parts": ["usergroup_id", "product_id"],
          "rows": 36,
          "filtered": 100,
          "index_condition": "cscart_product_prices.product_id in (4725,4726,4735,4024,4020,4028,4037,4019,4029,4036,4740,4739,4928,4493,4495,4496,4494,4909) and cscart_product_prices.usergroup_id in (0,1)",
          "attached_condition": "cscart_product_prices.lower_limit = 1"
        }
      }
    }
  }
}

Result

product_id price
4019 5.540000
4020 5.400000
4024 30.860000
4028 36.180000
4029 23.400000
4036 42.640000
4037 44.190000
4493 40.390000
4494 46.010000
4495 44.880000
4496 21.320000
4725 12.310000
4726 10.100000
4735 19.640000
4739 13.300000
4740 13.350000
4909 4.430000
4928 11.780000