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 (
    8374, 8571, 8726, 8728, 8803, 10085, 
    10099, 10106, 10166, 10256, 7859, 8268, 
    8331, 8378, 8436, 8442, 8579, 8583, 
    8606, 8727, 10107, 7858, 7862, 8270
  ) 
  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.00151

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "18.16"
    },
    "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": 27,
        "rows_produced_per_join": 5,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (8374,8571,8726,8728,8803,10085,10099,10106,10166,10256,7859,8268,8331,8378,8436,8442,8579,8583,8606,8727,10107,7858,7862,8270))",
        "cost_info": {
          "read_cost": "17.62",
          "eval_cost": "0.54",
          "prefix_cost": "18.16",
          "data_read_per_join": "129"
        },
        "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
7858 2250.00000000
7859 2750.00000000
7862 12000.00000000
8268 12000.00000000
8270 27000.00000000
8331 12000.00000000
8374 14000.00000000
8378 13000.00000000
8436 36000.00000000
8442 37500.00000000
8571 17000.00000000
8579 22000.00000000
8583 29000.00000000
8606 29000.00000000
8726 23000.00000000
8727 44000.00000000
8728 44000.00000000
8803 33000.00000000
10085 80000.00000000
10099 18000.00000000
10106 22000.00000000
10107 12000.00000000
10166 15000.00000000
10256 10000.00000000