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 (
    5485, 5479, 5420, 5518, 5441, 5434, 5590, 
    5417, 5541, 5406, 5407, 5493, 5526, 
    5484, 5412, 5583, 5680, 5416, 5482, 
    5544, 5589, 5600, 5487, 5418, 5421, 
    5499, 5521, 5532, 5597, 5455, 5512, 
    5560, 5562, 5588, 5669, 5525, 5679, 
    5533, 5974, 5579, 5584, 5481, 5489, 
    5428, 5524, 5591, 5511, 5419, 5495, 
    5423, 5424, 5480, 5486, 5657, 5546, 
    5543, 5440, 5547, 5548, 9547, 5438, 
    5443, 5476, 5542, 5592, 5585, 5649, 
    5447, 5529, 5439, 5659, 5602, 5496, 
    5656, 5475, 5433, 5498, 5603, 5432, 
    5514
  ) 
  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.00182

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "56.01"
    },
    "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": 80,
        "rows_produced_per_join": 15,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (5485,5479,5420,5518,5441,5434,5590,5417,5541,5406,5407,5493,5526,5484,5412,5583,5680,5416,5482,5544,5589,5600,5487,5418,5421,5499,5521,5532,5597,5455,5512,5560,5562,5588,5669,5525,5679,5533,5974,5579,5584,5481,5489,5428,5524,5591,5511,5419,5495,5423,5424,5480,5486,5657,5546,5543,5440,5547,5548,9547,5438,5443,5476,5542,5592,5585,5649,5447,5529,5439,5659,5602,5496,5656,5475,5433,5498,5603,5432,5514))",
        "cost_info": {
          "read_cost": "54.41",
          "eval_cost": "1.60",
          "prefix_cost": "56.01",
          "data_read_per_join": "383"
        },
        "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
5406 425000.00000000
5407 425000.00000000
5412 52500.00000000
5416 62500.00000000
5417 56500.00000000
5418 57750.00000000
5419 63000.00000000
5420 295000.00000000
5421 97000.00000000
5423 197500.00000000
5424 100000.00000000
5428 775000.00000000
5432 145000.00000000
5433 145000.00000000
5434 152250.00000000
5438 104500.00000000
5439 100000.00000000
5440 68250.00000000
5441 115000.00000000
5443 92500.00000000
5447 155000.00000000
5455 136500.00000000
5475 74500.00000000
5476 145000.00000000
5479 196000.00000000
5480 196000.00000000
5481 160000.00000000
5482 160000.00000000
5484 73500.00000000
5485 73500.00000000
5486 97000.00000000
5487 63000.00000000
5489 31500.00000000
5493 84000.00000000
5495 84000.00000000
5496 99750.00000000
5498 145000.00000000
5499 66250.00000000
5511 192000.00000000
5512 226000.00000000
5514 115000.00000000
5518 47250.00000000
5521 94500.00000000
5524 130000.00000000
5525 155500.00000000
5526 189000.00000000
5529 152250.00000000
5532 44000.00000000
5533 385000.00000000
5541 1085000.00000000
5542 1225000.00000000
5543 1225000.00000000
5544 74500.00000000
5546 210000.00000000
5547 57750.00000000
5548 73500.00000000
5560 2575000.00000000
5562 1510000.00000000
5579 3475000.00000000
5583 4075000.00000000
5584 4075000.00000000
5585 262500.00000000
5588 65500.00000000
5589 73500.00000000
5590 42000.00000000
5591 94500.00000000
5592 120750.00000000
5597 99750.00000000
5600 168000.00000000
5602 262500.00000000
5603 287500.00000000
5649 775000.00000000
5656 189000.00000000
5657 241500.00000000
5659 330750.00000000
5669 105000.00000000
5679 175000.00000000
5680 96500.00000000
5974 103000.00000000
9547 9500.00000000