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 (
    8768, 8770, 8844, 8848, 8904, 8913, 8964, 
    8967, 8973, 9024, 9043, 9045, 9072, 
    9079, 9091, 9095, 9100, 9114, 9115, 
    9116, 9128, 9132, 9140, 9141
  ) 
  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.00100

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 (8768,8770,8844,8848,8904,8913,8964,8967,8973,9024,9043,9045,9072,9079,9091,9095,9100,9114,9115,9116,9128,9132,9140,9141))",
        "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
8768 174250.00000000
8770 240250.00000000
8844 104000.00000000
8848 159500.00000000
8904 170000.00000000
8913 64500.00000000
8964 154500.00000000
8967 116250.00000000
8973 87250.00000000
9024 68000.00000000
9043 97500.00000000
9045 280000.00000000
9072 130500.00000000
9079 106000.00000000
9091 122500.00000000
9095 117500.00000000
9100 138000.00000000
9114 160000.00000000
9115 130000.00000000
9116 135000.00000000
9128 200000.00000000
9132 250000.00000000
9140 127750.00000000
9141 210000.00000000