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 (
    8584, 8588, 8726, 8728, 8755, 8803, 10044, 
    10085, 10099, 10106, 10166, 10256, 
    7859, 8268, 8331, 8334, 8378, 8383, 
    8436, 8442, 8462, 8539, 8579, 8583
  ) 
  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.00119

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 (8584,8588,8726,8728,8755,8803,10044,10085,10099,10106,10166,10256,7859,8268,8331,8334,8378,8383,8436,8442,8462,8539,8579,8583))",
        "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
7859 2750.00000000
8268 12000.00000000
8331 12000.00000000
8334 29000.00000000
8378 13000.00000000
8383 29000.00000000
8436 36000.00000000
8442 37500.00000000
8462 35000.00000000
8539 18000.00000000
8579 22000.00000000
8583 29000.00000000
8584 22000.00000000
8588 19000.00000000
8726 23000.00000000
8728 44000.00000000
8755 21000.00000000
8803 33000.00000000
10044 19000.00000000
10085 80000.00000000
10099 18000.00000000
10106 22000.00000000
10166 15000.00000000
10256 10000.00000000