SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    597, 574, 357, 592, 582, 587, 579, 593, 
    575, 580, 583, 588, 359, 598, 571, 581, 
    594, 584, 577, 599, 589, 590, 595, 361, 
    576, 600, 585, 578, 363, 601, 586, 591, 
    596, 572, 573
  ) 
  AND category_id != 264

Query time 0.00026

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.038906565,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_categories",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "parent", "p_category_id"],
          "key": "parent",
          "key_length": "3",
          "used_key_parts": ["parent_id"],
          "loops": 1,
          "rows": 57,
          "cost": 0.038906565,
          "filtered": 100,
          "attached_condition": "cscart_categories.parent_id in (597,574,357,592,582,587,579,593,575,580,583,588,359,598,571,581,594,584,577,599,589,590,595,361,576,600,585,578,363,601,586,591,596,572,573) and cscart_categories.category_id <> 264",
          "using_index": true
        }
      }
    ]
  }
}

Result

category_id parent_id
574 357
575 357
576 357
577 357
578 357
579 359
580 359
581 359
587 361
588 361
589 361
590 361
591 361
592 363
593 363
594 363
595 363
596 363
582 571
583 571
584 571
585 571
586 571
597 572
598 572
599 572
600 572
601 572