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 (
    10099, 10106, 10166, 10256, 7859, 8268, 
    8331, 8334, 8378, 8383, 8436, 8442, 
    8462, 8539, 8579, 8583, 8606, 8727, 
    10046, 10107
  ) 
  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.00173

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "15.36"
    },
    "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": 23,
        "rows_produced_per_join": 4,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (10099,10106,10166,10256,7859,8268,8331,8334,8378,8383,8436,8442,8462,8539,8579,8583,8606,8727,10046,10107))",
        "cost_info": {
          "read_cost": "14.90",
          "eval_cost": "0.46",
          "prefix_cost": "15.36",
          "data_read_per_join": "110"
        },
        "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
8606 29000.00000000
8727 44000.00000000
10046 25000.00000000
10099 18000.00000000
10106 22000.00000000
10107 12000.00000000
10166 15000.00000000
10256 10000.00000000