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 (
    8663, 8779, 8562, 8657, 8689, 8627, 8619, 
    8838, 8936, 8731, 8916, 8568, 8655, 
    8667, 8618, 8566, 8776, 8560, 8914, 
    8933, 8739, 8748, 8629, 8775
  ) 
  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.00148

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 (8663,8779,8562,8657,8689,8627,8619,8838,8936,8731,8916,8568,8655,8667,8618,8566,8776,8560,8914,8933,8739,8748,8629,8775))",
        "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
8560 84000.00000000
8562 75000.00000000
8566 181000.00000000
8568 45000.00000000
8618 32000.00000000
8619 39000.00000000
8627 38000.00000000
8629 46000.00000000
8655 23000.00000000
8657 26000.00000000
8663 21000.00000000
8667 46000.00000000
8689 49000.00000000
8731 28000.00000000
8739 67000.00000000
8748 55000.00000000
8775 199000.00000000
8776 62000.00000000
8779 46000.00000000
8838 36000.00000000
8914 49000.00000000
8916 48000.00000000
8933 53000.00000000
8936 29000.00000000