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 (
    9890, 9897, 9898, 9903, 9916, 9918, 9938, 
    9950, 9957, 9973, 9991, 9993, 10061, 
    10170, 10259, 10431, 10595, 10597, 
    10608, 10625, 10629, 10631, 10635, 
    10644
  ) 
  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.00096

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "28.51"
    },
    "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": 50,
        "rows_produced_per_join": 9,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (9890,9897,9898,9903,9916,9918,9938,9950,9957,9973,9991,9993,10061,10170,10259,10431,10595,10597,10608,10625,10629,10631,10635,10644))",
        "cost_info": {
          "read_cost": "27.51",
          "eval_cost": "1.00",
          "prefix_cost": "28.51",
          "data_read_per_join": "239"
        },
        "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
9890 52500.00000000
9897 29250.00000000
9898 66750.00000000
9903 80750.00000000
9916 6500.00000000
9918 7250.00000000
9938 85000.00000000
9950 7500.00000000
9957 44000.00000000
9973 6750.00000000
9991 65000.00000000
9993 66000.00000000
10061 175000.00000000
10170 67000.00000000
10259 98000.00000000
10431 48750.00000000
10595 40250.00000000
10597 40250.00000000
10608 42000.00000000
10625 46500.00000000
10629 48000.00000000
10631 48000.00000000
10635 48000.00000000
10644 40500.00000000