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 (
    9310, 6903, 8309, 7531, 7817, 8145, 8202, 
    7805, 7819, 7803, 7824, 7905, 8336, 
    7815, 8205, 8322, 8147, 8306, 8235, 
    8247, 8163, 8236, 7886, 8203
  ) 
  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.00118

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "16.81"
    },
    "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": 24,
        "rows_produced_per_join": 4,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (9310,6903,8309,7531,7817,8145,8202,7805,7819,7803,7824,7905,8336,7815,8205,8322,8147,8306,8235,8247,8163,8236,7886,8203))",
        "cost_info": {
          "read_cost": "16.33",
          "eval_cost": "0.48",
          "prefix_cost": "16.81",
          "data_read_per_join": "115"
        },
        "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
6903 4000.00000000
7531 350750.00000000
7803 54500.00000000
7805 32250.00000000
7815 86500.00000000
7817 75750.00000000
7819 74000.00000000
7824 29750.00000000
7886 36000.00000000
7905 32000.00000000
8145 104000.00000000
8147 52750.00000000
8163 25500.00000000
8202 141750.00000000
8203 125750.00000000
8205 79000.00000000
8235 31000.00000000
8236 34250.00000000
8247 93000.00000000
8306 32250.00000000
8309 40750.00000000
8322 172500.00000000
8336 7250.00000000
9310 74000.00000000