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 (
    2892, 2896, 2884, 2785, 2889, 2895, 2885, 
    2894, 2891, 2893, 2887, 2890, 2888, 
    2886, 6291, 7518, 7520, 7517, 8345, 
    10226, 10219, 10294, 10225, 10254
  ) 
  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.00099

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "23.11"
    },
    "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": 38,
        "rows_produced_per_join": 7,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (2892,2896,2884,2785,2889,2895,2885,2894,2891,2893,2887,2890,2888,2886,6291,7518,7520,7517,8345,10226,10219,10294,10225,10254))",
        "cost_info": {
          "read_cost": "22.35",
          "eval_cost": "0.76",
          "prefix_cost": "23.11",
          "data_read_per_join": "182"
        },
        "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
2785 820000.00000000
2884 730000.00000000
2885 559000.00000000
2886 350000.00000000
2887 216000.00000000
2888 106000.00000000
2889 156000.00000000
2890 374000.00000000
2891 238000.00000000
2892 380000.00000000
2893 186000.00000000
2894 392000.00000000
2895 484000.00000000
2896 648000.00000000
6291 399000.00000000
7517 1397000.00000000
7518 985000.00000000
7520 626500.00000000
8345 1300000.00000000
10219 16000.00000000
10225 15000.00000000
10226 9000.00000000
10254 18000.00000000
10294 10000.00000000