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 (
    4644, 2452, 4888, 3577, 2451, 5804, 5952, 
    4041, 2225, 3099, 4030, 8511, 8514, 
    4211, 4623, 5194, 6595, 3997, 2800, 
    4563, 1547, 4629, 2189, 2283
  ) 
  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.00333

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "16.81"
    },
    "grouping_operation": {
      "using_filesort": false,
      "table": {
        "table_name": "cscart_product_prices",
        "access_type": "range",
        "possible_keys": [
          "usergroup",
          "product_id",
          "lower_limit",
          "usergroup_id"
        ],
        "key": "product_id",
        "used_key_parts": [
          "product_id"
        ],
        "key_length": "3",
        "rows_examined_per_scan": 24,
        "rows_produced_per_join": 4,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (4644,2452,4888,3577,2451,5804,5952,4041,2225,3099,4030,8511,8514,4211,4623,5194,6595,3997,2800,4563,1547,4629,2189,2283))",
        "cost_info": {
          "read_cost": "16.33",
          "eval_cost": "0.48",
          "prefix_cost": "16.81",
          "data_read_per_join": "115"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
1547 500000.00000000
2189 29000.00000000
2225 23000.00000000
2283 63000.00000000
2451 386000.00000000
2452 118000.00000000
2800 554000.00000000
3099 69000.00000000
3577 775000.00000000
3997 102000.00000000
4030 1190000.00000000
4041 575000.00000000
4211 54000.00000000
4563 950000.00000000
4623 1825000.00000000
4629 2800000.00000000
4644 210000.00000000
4888 189000.00000000
5194 226000.00000000
5804 62000.00000000
5952 69000.00000000
6595 566000.00000000
8511 809000.00000000
8514 29000.00000000