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 (
    6778, 6793, 7698, 8960, 9014, 10148, 
    10325, 10420, 10128, 6494, 6575, 6579, 
    6674, 6718, 6816, 7540, 7543, 10122, 
    10217, 6496, 6548, 6775, 6809, 10387, 
    6715, 6758, 6766, 6768, 6717, 6771, 
    6813, 6716, 6772, 6669, 6671, 6812, 
    7522, 6761, 6672, 7516, 11046, 11255, 
    11277, 10428, 6760, 7699, 10956, 11067, 
    10312, 10453, 6767, 6815, 7704, 7729, 
    10226, 10471, 10196, 7751, 10219, 10365, 
    10398, 10463, 11280, 6759, 10315, 7753, 
    6668, 6762, 6765, 6810, 7750, 10406, 
    10436, 10480, 10486, 10545, 11155, 
    11456, 6404, 6757
  ) 
  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.00202

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "88.41"
    },
    "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": 152,
        "rows_produced_per_join": 30,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (6778,6793,7698,8960,9014,10148,10325,10420,10128,6494,6575,6579,6674,6718,6816,7540,7543,10122,10217,6496,6548,6775,6809,10387,6715,6758,6766,6768,6717,6771,6813,6716,6772,6669,6671,6812,7522,6761,6672,7516,11046,11255,11277,10428,6760,7699,10956,11067,10312,10453,6767,6815,7704,7729,10226,10471,10196,7751,10219,10365,10398,10463,11280,6759,10315,7753,6668,6762,6765,6810,7750,10406,10436,10480,10486,10545,11155,11456,6404,6757))",
        "cost_info": {
          "read_cost": "85.37",
          "eval_cost": "3.04",
          "prefix_cost": "88.41",
          "data_read_per_join": "729"
        },
        "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
6404 990000.00000000
6494 738000.00000000
6496 829000.00000000
6548 191000.00000000
6575 149000.00000000
6579 1207000.00000000
6668 41000.00000000
6669 86000.00000000
6671 121000.00000000
6672 60000.00000000
6674 53000.00000000
6715 250000.00000000
6716 314000.00000000
6717 219000.00000000
6718 210000.00000000
6757 376000.00000000
6758 289000.00000000
6759 144000.00000000
6760 179000.00000000
6761 72000.00000000
6762 65000.00000000
6765 42000.00000000
6766 184000.00000000
6767 158000.00000000
6768 144000.00000000
6771 175000.00000000
6772 140000.00000000
6775 140000.00000000
6778 95000.00000000
6793 114000.00000000
6809 86000.00000000
6810 182000.00000000
6812 65000.00000000
6813 49000.00000000
6815 34000.00000000
6816 95000.00000000
7516 174000.00000000
7522 240750.00000000
7540 102000.00000000
7543 241000.00000000
7698 218000.00000000
7699 122000.00000000
7704 364000.00000000
7729 183000.00000000
7750 244000.00000000
7751 145000.00000000
7753 241000.00000000
8960 455000.00000000
9014 530000.00000000
10122 499000.00000000
10128 740000.00000000
10148 75000.00000000
10196 588000.00000000
10217 4567000.00000000
10219 16000.00000000
10226 9000.00000000
10312 850000.00000000
10315 1200000.00000000
10325 1610000.00000000
10365 31000.00000000
10387 109000.00000000
10398 159000.00000000
10406 39000.00000000
10420 60000.00000000
10428 142000.00000000
10436 23000.00000000
10453 165000.00000000
10463 175000.00000000
10471 425000.00000000
10480 219750.00000000
10486 21250.00000000
10545 239000.00000000
10956 25000.00000000
11046 125000.00000000
11067 275000.00000000
11155 195000.00000000
11255 350000.00000000
11277 385000.00000000
11280 1500000.00000000
11456 435000.00000000