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 (
    6244, 6333, 6405, 6386, 5989, 5994, 5202, 
    5964, 6620, 6621, 6623, 5656, 5908, 
    7541, 7633, 6339, 5475, 6691, 6807, 
    5433, 5498, 6225, 6770, 6781
  ) 
  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.00131

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 (6244,6333,6405,6386,5989,5994,5202,5964,6620,6621,6623,5656,5908,7541,7633,6339,5475,6691,6807,5433,5498,6225,6770,6781))",
        "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
5202 35000.00000000
5433 145000.00000000
5475 74500.00000000
5498 145000.00000000
5656 189000.00000000
5908 1107000.00000000
5964 337500.00000000
5989 5103000.00000000
5994 3105000.00000000
6225 1400000.00000000
6244 330000.00000000
6333 975000.00000000
6339 839000.00000000
6386 975000.00000000
6405 510000.00000000
6620 84000.00000000
6621 131000.00000000
6623 108000.00000000
6691 67000.00000000
6770 83000.00000000
6781 39000.00000000
6807 154000.00000000
7541 84500.00000000
7633 314000.00000000