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 (
    6224, 6352, 6511, 6826, 7160, 7416, 7429, 
    7544, 7582, 8190, 8354, 8702, 9170, 
    10009, 10018, 10035, 11199, 11399, 
    11530, 7081, 6295, 6394, 6513, 6520
  ) 
  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.00104

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "20.41"
    },
    "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": 32,
        "rows_produced_per_join": 6,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (6224,6352,6511,6826,7160,7416,7429,7544,7582,8190,8354,8702,9170,10009,10018,10035,11199,11399,11530,7081,6295,6394,6513,6520))",
        "cost_info": {
          "read_cost": "19.77",
          "eval_cost": "0.64",
          "prefix_cost": "20.41",
          "data_read_per_join": "153"
        },
        "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
6224 800000.00000000
6295 1279000.00000000
6352 1279000.00000000
6394 86000.00000000
6511 45500.00000000
6513 35000.00000000
6520 111000.00000000
6826 19500.00000000
7081 65000.00000000
7160 165000.00000000
7416 11250.00000000
7429 16500.00000000
7544 174000.00000000
7582 60000.00000000
8190 133000.00000000
8354 5500.00000000
8702 359000.00000000
9170 5250.00000000
10009 36000.00000000
10018 272000.00000000
10035 75000.00000000
11199 306000.00000000
11399 331500.00000000
11530 273000.00000000