SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    479, 480, 484, 493, 494, 495, 496, 497, 
    498, 506, 508, 509, 510, 511, 521, 522, 
    523, 524, 525, 526, 527, 564, 565, 566, 
    567
  ) 
  AND category_id != 414

Query time 0.00066

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "51.26"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "parent",
        "p_category_id"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 100,
      "rows_produced_per_join": 100,
      "filtered": "100.00",
      "index_condition": "(`s2cart`.`cscart_categories`.`parent_id` in (479,480,484,493,494,495,496,497,498,506,508,509,510,511,521,522,523,524,525,526,527,564,565,566,567))",
      "cost_info": {
        "read_cost": "41.26",
        "eval_cost": "10.00",
        "prefix_cost": "51.26",
        "data_read_per_join": "353K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`s2cart`.`cscart_categories`.`category_id` <> 414)"
    }
  }
}

Result

category_id parent_id
481 480
482 480
483 480
485 484
486 484
487 484
488 484
489 484
490 484
491 484
492 484
507 506
512 511
513 511
514 511
515 511
516 511
517 511
518 511
519 511
520 511
563 527
562 527
561 527
560 527
559 527
539 527
540 527
541 527
542 527
543 527
544 527
545 527
546 527
547 527
548 527
549 527
550 527
551 527
552 527
553 527
554 527
555 527
556 527
557 527
558 527
538 527
537 527
536 527
534 527
535 527
533 527
532 527
528 527
529 527
530 527
531 527