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 (
    614, 615, 644, 625, 650, 651, 640, 609, 
    653, 660, 647, 648, 617, 642, 641, 616, 
    661, 624, 637, 599, 634, 607, 652, 638
  ) 
  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.00061

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "68.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": 32,
        "rows_produced_per_join": 6,
        "filtered": "19.62",
        "index_condition": "(`danishecarter_latest`.`cscart_product_prices`.`product_id` in (614,615,644,625,650,651,640,609,653,660,647,648,617,642,641,616,661,624,637,599,634,607,652,638))",
        "cost_info": {
          "read_cost": "67.55",
          "eval_cost": "1.26",
          "prefix_cost": "68.81",
          "data_read_per_join": "200"
        },
        "used_columns": [
          "product_id",
          "price",
          "percentage_discount",
          "lower_limit",
          "usergroup_id"
        ],
        "attached_condition": "((`danishecarter_latest`.`cscart_product_prices`.`lower_limit` = 1) and (`danishecarter_latest`.`cscart_product_prices`.`usergroup_id` in (0,1)))"
      }
    }
  }
}

Result

product_id price
599 51900.00000000
607 30400.00000000
609 19833.96000000
614 54000.00000000
615 54000.00000000
616 15600.00000000
617 10600.00000000
624 39900.00000000
625 16800.00000000
634 45900.00000000
637 36700.00000000
638 27200.00000000
640 4800.00000000
641 22400.00000000
642 22400.00000000
644 10000.00000000
647 22000.00000000
648 22000.00000000
650 28000.00000000
651 28000.00000000
652 6500.00000000
653 7500.00000000
660 12800.00000000
661 13880.00000000