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 (
    6945, 6947, 6948, 6959, 6971, 6975, 7019, 
    7060, 7062, 7064, 7065, 7094, 7107, 
    7109, 7122, 7136, 7140, 7158, 7161, 
    7204, 7206, 7209, 7297, 6966, 6846, 
    6873, 6883, 6896, 6907, 6908, 6909, 
    6914, 6927, 6950, 6955, 6956, 6963, 
    7003, 7061, 7104, 7164, 7165, 7179, 
    7181, 7273, 7275, 7305, 7310, 7311, 
    6897, 7106, 6967, 6898, 6901, 6915, 
    6932, 6964, 6969, 7090, 7108, 7201, 
    7203, 7207, 7301, 7312, 6890, 6894, 
    6910, 6919, 6974, 6998, 7114, 7298, 
    7327, 7143, 7309, 7314, 7063
  ) 
  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.00186

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "54.61"
    },
    "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": 78,
        "rows_produced_per_join": 15,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (6945,6947,6948,6959,6971,6975,7019,7060,7062,7064,7065,7094,7107,7109,7122,7136,7140,7158,7161,7204,7206,7209,7297,6966,6846,6873,6883,6896,6907,6908,6909,6914,6927,6950,6955,6956,6963,7003,7061,7104,7164,7165,7179,7181,7273,7275,7305,7310,7311,6897,7106,6967,6898,6901,6915,6932,6964,6969,7090,7108,7201,7203,7207,7301,7312,6890,6894,6910,6919,6974,6998,7114,7298,7327,7143,7309,7314,7063))",
        "cost_info": {
          "read_cost": "53.05",
          "eval_cost": "1.56",
          "prefix_cost": "54.61",
          "data_read_per_join": "374"
        },
        "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
6846 32000.00000000
6873 98000.00000000
6883 23000.00000000
6890 27000.00000000
6894 45000.00000000
6896 290000.00000000
6897 490000.00000000
6898 46000.00000000
6901 24000.00000000
6907 39000.00000000
6908 60000.00000000
6909 307000.00000000
6910 33000.00000000
6914 51000.00000000
6915 128000.00000000
6919 16000.00000000
6927 51000.00000000
6932 94000.00000000
6945 34000.00000000
6947 294000.00000000
6948 76000.00000000
6950 185000.00000000
6955 110000.00000000
6956 99000.00000000
6959 58000.00000000
6963 294000.00000000
6964 25000.00000000
6966 24000.00000000
6967 82000.00000000
6969 256000.00000000
6971 204000.00000000
6974 39000.00000000
6975 32000.00000000
6998 549000.00000000
7003 99000.00000000
7019 98000.00000000
7060 8000.00000000
7061 8000.00000000
7062 51000.00000000
7063 51000.00000000
7064 51000.00000000
7065 51000.00000000
7090 199000.00000000
7094 12000.00000000
7104 30000.00000000
7106 80000.00000000
7107 118000.00000000
7108 110000.00000000
7109 207000.00000000
7114 25000.00000000
7122 24000.00000000
7136 159000.00000000
7140 37000.00000000
7143 449000.00000000
7158 90000.00000000
7161 127000.00000000
7164 32000.00000000
7165 105000.00000000
7179 450000.00000000
7181 450000.00000000
7201 51000.00000000
7203 230000.00000000
7204 84000.00000000
7206 115000.00000000
7207 128000.00000000
7209 471000.00000000
7273 111000.00000000
7275 241000.00000000
7297 24000.00000000
7298 24000.00000000
7301 97000.00000000
7305 77000.00000000
7309 98000.00000000
7310 175000.00000000
7311 38000.00000000
7312 82000.00000000
7314 59000.00000000
7327 64000.00000000