SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    2999, 2862, 2944, 2739, 3030, 3001, 2740, 
    2980, 2741, 2686, 2920, 2811, 2819, 
    2828, 2813, 2805, 2695, 2831, 2818, 
    2814, 2699, 2821, 2816, 2804, 2710, 
    2693, 2833, 2823, 2812, 2689, 2820, 
    2806, 2702, 2815, 2825, 2817, 2832, 
    2706, 2701, 2826, 2827, 2822, 2705, 
    2923, 3025, 2708, 3002, 2698, 2690, 
    2738, 2834
  )

Query time 0.00061

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "52.81"
    },
    "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": 89,
      "rows_produced_per_join": 89,
      "filtered": "100.00",
      "index_condition": "(`cscart_db`.`cscart_categories`.`parent_id` in (2999,2862,2944,2739,3030,3001,2740,2980,2741,2686,2920,2811,2819,2828,2813,2805,2695,2831,2818,2814,2699,2821,2816,2804,2710,2693,2833,2823,2812,2689,2820,2806,2702,2815,2825,2817,2832,2706,2701,2826,2827,2822,2705,2923,3025,2708,3002,2698,2690,2738,2834))",
      "cost_info": {
        "read_cost": "43.91",
        "eval_cost": "8.90",
        "prefix_cost": "52.81",
        "data_read_per_join": "248K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ]
    }
  }
}

Result

category_id parent_id
3002 2686
2817 2686
2812 2686
2819 2686
3025 2686
2821 2686
2822 2686
2862 2689
2818 2689
2820 2689
2824 2689
2995 2690
2693 2690
2695 2690
2923 2690
2825 2690
2826 2690
2990 2698
2701 2698
2980 2698
2699 2698
2702 2698
3051 2705
2815 2705
2811 2705
3000 2705
2999 2705
2706 2705
2814 2705
2813 2708
2816 2708
2823 2708
2806 2710
2804 2710
2805 2710
2920 2738
3030 2738
2739 2738
2928 2738
2741 2738
2929 2738
2944 2739
2740 2739
2828 2827
2829 2827
2830 2827
2831 2827
2832 2827
2833 2827
3001 2834