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 (
    5584, 5481, 5489, 5428, 5524, 5591, 5511, 
    5419, 5495, 5423, 5424, 5480, 5486, 
    5657, 5546, 5543, 5440, 5547, 9547, 
    5438, 5443, 5476, 5542, 5548, 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.00129

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "28.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": 40,
        "rows_produced_per_join": 7,
        "filtered": "19.99",
        "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_prices`.`product_id` in (5584,5481,5489,5428,5524,5591,5511,5419,5495,5423,5424,5480,5486,5657,5546,5543,5440,5547,9547,5438,5443,5476,5542,5548,5592,5585,5649,5447,5529,5439,5659,5602,5496,5656,5475,5433,5498,5603,5432,5514))",
        "cost_info": {
          "read_cost": "27.21",
          "eval_cost": "0.80",
          "prefix_cost": "28.01",
          "data_read_per_join": "191"
        },
        "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
5419 63000.00000000
5423 197500.00000000
5424 100000.00000000
5428 775000.00000000
5432 145000.00000000
5433 145000.00000000
5438 104500.00000000
5439 100000.00000000
5440 68250.00000000
5443 92500.00000000
5447 155000.00000000
5475 74500.00000000
5476 145000.00000000
5480 196000.00000000
5481 160000.00000000
5486 97000.00000000
5489 31500.00000000
5495 84000.00000000
5496 99750.00000000
5498 145000.00000000
5511 192000.00000000
5514 115000.00000000
5524 130000.00000000
5529 152250.00000000
5542 1225000.00000000
5543 1225000.00000000
5546 210000.00000000
5547 57750.00000000
5548 73500.00000000
5584 4075000.00000000
5585 262500.00000000
5591 94500.00000000
5592 120750.00000000
5602 262500.00000000
5603 287500.00000000
5649 775000.00000000
5656 189000.00000000
5657 241500.00000000
5659 330750.00000000
9547 9500.00000000