SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    52, 53, 588, 37, 522, 671, 647, 631, 586, 
    571, 560, 55, 513, 494, 54, 490, 154, 
    453, 587, 499, 426, 413, 390, 355, 340, 
    338, 294, 271, 256, 246, 209, 208, 162, 
    156, 106, 103, 95, 88, 87, 71, 83, 70, 
    69, 68, 642, 589, 659, 649, 637, 609, 
    591, 576, 564, 555, 548, 547, 546, 545, 
    544, 543, 542, 541, 550, 539, 538, 537, 
    535, 534, 533, 536, 532, 531, 527, 526, 
    528, 524, 529, 523, 530, 525, 565
  )

Query time 0.00208

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "54.99"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "ALL",
      "possible_keys": [
        "parent"
      ],
      "rows_examined_per_scan": 518,
      "rows_produced_per_join": 166,
      "filtered": "32.05",
      "cost_info": {
        "read_cost": "38.39",
        "eval_cost": "16.60",
        "prefix_cost": "54.99",
        "data_read_per_join": "665K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`dbggbern`.`cscart_categories`.`parent_id` in (52,53,588,37,522,671,647,631,586,571,560,55,513,494,54,490,154,453,587,499,426,413,390,355,340,338,294,271,256,246,209,208,162,156,106,103,95,88,87,71,83,70,69,68,642,589,659,649,637,609,591,576,564,555,548,547,546,545,544,543,542,541,550,539,538,537,535,534,533,536,532,531,527,526,528,524,529,523,530,525,565))"
    }
  }
}

Result

category_id parent_id
68 52
69 52
70 52
71 52
83 52
87 52
88 52
95 52
103 52
106 52
294 52
156 52
162 52
208 52
209 52
246 52
256 52
271 52
338 52
340 52
355 52
413 52
426 52
390 52
453 52
490 52
494 52
513 52
555 522
522 154
523 522
524 522
525 522
526 522
527 522
528 522
529 522
530 522
531 522
532 522
533 522
534 522
535 522
536 522
537 522
538 522
539 522
550 522
541 522
542 522
543 522
544 522
545 522
546 522
547 522
548 522
560 52
564 522
565 522
571 52
576 522
586 52
588 587
591 522
609 522
631 52
637 522
642 52
647 52
649 522
659 522
671 52