SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    2913, 3018, 2916, 2915, 2944, 3007, 3011, 
    3080, 2912, 3105, 2920, 3362, 3691, 
    3408, 3251, 3006, 2933, 2921, 2914, 
    4029, 5522
  )

Query time 0.00091

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "95.58"
    },
    "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": 236,
      "rows_produced_per_join": 236,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "48.38",
        "eval_cost": "47.20",
        "prefix_cost": "95.58",
        "data_read_per_join": "1M"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`parent_id` in (2913,3018,2916,2915,2944,3007,3011,3080,2912,3105,2920,3362,3691,3408,3251,3006,2933,2921,2914,4029,5522))"
    }
  }
}

Result

category_id parent_id
2917 2912
3012 2912
3016 2912
3033 2912
3043 2912
3044 2912
3045 2912
3046 2912
3047 2912
3048 2912
3049 2912
3050 2912
9476 2912
9489 2912
2918 2913
2923 2913
2927 2913
2932 2913
2937 2913
2939 2913
2943 2913
2946 2913
2950 2913
2955 2913
2959 2913
2962 2913
2965 2913
2974 2913
2979 2913
2986 2913
2991 2913
2997 2913
3000 2913
3003 2913
3009 2913
2919 2915
2925 2915
2929 2915
2936 2915
2938 2915
2926 2916
2931 2916
2940 2916
2951 2916
2978 2916
2983 2916
2989 2916
2993 2916
3014 2916
3017 2916
3040 2916
3052 2916
3064 2916
3073 2916
3079 2916
3087 2916
3096 2916
3116 2916
3140 2916
3145 2916
3149 2916
3153 2916
3159 2916
3181 2916
3187 2916
3192 2916
3197 2916
3201 2916
3206 2916
3212 2916
3217 2916
3221 2916
3234 2916
3237 2916
3243 2916
3250 2916
3253 2916
3256 2916
3259 2916
3264 2916
3270 2916
3276 2916
3282 2916
3306 2916
3308 2916
3309 2916
3312 2916
3314 2916
3317 2916
3318 2916
3323 2916
3334 2916
3335 2916
3338 2916
3343 2916
3386 2916
3401 2916
3412 2916
3414 2916
3423 2916
3425 2916
3453 2916
3454 2916
3459 2916
3461 2916
3462 2916
3468 2916
3469 2916
3472 2916
3478 2916
3487 2916
3488 2916
3491 2916
3498 2916
3507 2916
9595 2916
2924 2920
3029 2920
3141 2920
3186 2920
3273 2920
3337 2920
3429 2920
3741 2920
3977 2920
6245 2920
2945 2933
2953 2933
2976 2933
2984 2933
2990 2933
2995 2933
2999 2933
2947 2944
2952 2944
2956 2944
2960 2944
2966 2944
2971 2944
2977 2944
2981 2944
2992 2944
2996 2944
3002 2944
3013 3006
3195 3006
3219 3006
3232 3006
3245 3006
3015 3011
3019 3011
3025 3011
3031 3011
3038 3011
3041 3011
3053 3011
3075 3011
3024 3018
3032 3018
3035 3018
3039 3018
3054 3018
3062 3018
3067 3018
3074 3018
3082 3018
3085 3080
3102 3080
3138 3080
3144 3080
3152 3080
3156 3080
3178 3080
3185 3080
3199 3080
3247 3080
3267 3080
3272 3080
3716 3080
3104 3105
3110 3105
3111 3105
3112 3105
3113 3105
3114 3105
3222 3105
3223 3105
3224 3105
3225 3105
3226 3105
3227 3105
3228 3105
3229 3105
3230 3105
3231 3105
3269 3105
9020 3105
9832 3105
3258 3251
3268 3251
3278 3251
3322 3251
3332 3251
3365 3251
3382 3362
3792 3362
3862 3362
3919 3362
3930 3362
3998 3362
3415 3408
3759 3408
3775 3408
3963 3408
3697 3691
3732 3691
3739 3691
3753 3691
3771 3691
4277 3691
4293 3691
4535 3691
4628 3691
5010 3691
5095 3691
5162 3691
5240 3691
5555 5522
5629 5522
5727 5522
5777 5522
5841 5522