SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    3173, 3163, 2655, 2974, 2645, 2681, 2658, 
    2663, 2662, 2682, 2657, 2666, 3162, 
    296, 281, 277, 2660, 2684, 2642, 2653, 
    2673, 2650, 620, 2672, 2664, 2652, 2683, 
    2667, 2668, 2648, 2656, 2641, 2473, 
    3020, 2679, 2676, 2913, 290, 2671, 2677, 
    2494, 2659, 2661, 2665, 2644, 2647, 
    2680, 508, 2973, 1186, 2678, 2651, 3055, 
    3094, 3114, 2438, 2643, 2670, 2463, 
    2640, 782, 2675, 2453, 2488, 2646, 2649, 
    458, 2654, 2215, 3093
  )

Query time 0.00110

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "27.49"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "parent",
        "idx_categories_parent_status"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 134,
      "rows_produced_per_join": 134,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "14.10",
        "eval_cost": "13.40",
        "prefix_cost": "27.50",
        "data_read_per_join": "374K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`cscart_db`.`cscart_categories`.`parent_id` in (3173,3163,2655,2974,2645,2681,2658,2663,2662,2682,2657,2666,3162,296,281,277,2660,2684,2642,2653,2673,2650,620,2672,2664,2652,2683,2667,2668,2648,2656,2641,2473,3020,2679,2676,2913,290,2671,2677,2494,2659,2661,2665,2644,2647,2680,508,2973,1186,2678,2651,3055,3094,3114,2438,2643,2670,2463,2640,782,2675,2453,2488,2646,2649,458,2654,2215,3093))"
    }
  }
}

Result

category_id parent_id
2215 458
2640 458
2643 458
2646 458
2649 458
2651 458
2654 458
3114 458
3152 458
3094 2215
1186 2463
2494 2463
3162 2463
3163 2463
277 2488
281 2488
290 2488
296 2488
508 2488
620 2488
782 2488
2641 2640
2642 2640
2659 2640
2665 2640
2666 2640
2644 2643
2645 2643
2662 2643
2647 2646
2648 2646
2660 2646
2650 2649
2661 2649
2664 2649
2668 2649
3093 2649
2652 2651
2653 2651
2656 2651
2655 2654
2657 2654
2658 2654
2663 2654
2667 2654
2913 2654
2671 2670
2672 2670
2673 2670
2674 2670
2677 2670
2680 2670
2973 2670
2974 2670
3055 2670
2676 2675
2683 2675
2684 2675
3020 2675
3097 2675
3098 2675
3099 2675
3100 2675
3101 2675
3102 2675
3103 2675
3104 2675
3105 2675
3106 2675
2438 2676
2453 2676
2463 2676
3107 2676
3161 2676
3173 2676
2679 2678
2681 2678
2682 2678
2473 2683