SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    9965, 9994, 9966, 2658, 2721, 9986, 9992, 
    10485, 9971, 2653, 2695, 2722, 8943, 
    2769, 2789, 2822, 2843
  )

Query time 0.00061

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "38.28"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "parent"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 93,
      "rows_produced_per_join": 93,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "19.68",
        "eval_cost": "18.60",
        "prefix_cost": "38.28",
        "data_read_per_join": "551K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`parent_id` in (9965,9994,9966,2658,2721,9986,9992,10485,9971,2653,2695,2722,8943,2769,2789,2822,2843))"
    }
  }
}

Result

category_id parent_id
2656 2653
2658 2653
2721 2653
2760 2653
2761 2653
2797 2653
2804 2653
2853 2653
9965 2653
9967 2653
9968 2653
9980 2653
2657 2658
2661 2658
2671 2658
2695 2658
2722 2658
2724 2658
2729 2658
2763 2658
2767 2658
2769 2658
2789 2658
2800 2658
2812 2658
2822 2658
2829 2658
2837 2658
2843 2658
2849 2658
8851 2658
9250 2658
9257 2658
9276 2658
9574 2658
9990 2658
10562 2658
10563 2658
2702 2695
2711 2695
2719 2695
2753 2721
2759 2721
2783 2721
8943 2721
2726 2722
2732 2722
2741 2722
2745 2722
2754 2722
2762 2722
2770 2722
2777 2722
2790 2722
2807 2722
2816 2722
2850 2843
2857 2843
2858 2843
2862 2843
2866 2843
2884 2843
2725 8943
2728 8943
2730 8943
2734 8943
2736 8943
2739 8943
2743 8943
2748 8943
9966 9965
9971 9965
9977 9965
9978 9965
9983 9965
9986 9965
9992 9965
9994 9965
10125 9965
10127 9965
10128 9965
10129 9965
10130 9965
10131 9965
9993 9992
10486 10485