SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    3017, 2916, 2920, 266, 5299, 4922, 6456, 
    3816, 4486, 447, 2910, 443, 3648, 1505, 
    1518, 10425, 10426, 3308, 3550, 3573, 
    3616, 3642, 3685, 3751, 3913
  )

Query time 0.00106

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "98.39"
    },
    "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": 243,
      "rows_produced_per_join": 243,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "49.79",
        "eval_cost": "48.60",
        "prefix_cost": "98.39",
        "data_read_per_join": "1M"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`parent_id` in (3017,2916,2920,266,5299,4922,6456,3816,4486,447,2910,443,3648,1505,1518,10425,10426,3308,3550,3573,3616,3642,3685,3751,3913))"
    }
  }
}

Result

category_id parent_id
327 266
341 266
344 266
356 266
394 266
443 266
715 266
930 266
990 266
1498 266
1584 266
1907 266
1936 266
2171 266
2178 266
2373 266
2404 266
2433 266
2465 266
2577 266
2591 266
2611 266
2615 266
9692 266
9830 266
9840 266
9844 266
9926 266
9936 266
10631 266
10632 266
10633 266
10667 266
267 443
444 443
445 443
446 443
447 443
1409 443
1410 443
1505 443
1509 443
1510 443
1518 443
1690 443
2454 443
2610 443
2634 443
9842 443
9843 443
10425 443
10426 443
1441 447
1442 447
10409 447
10410 447
10411 447
10413 447
1519 1518
2912 2910
2913 2910
2914 2910
2915 2910
2916 2910
2920 2910
2921 2910
2933 2910
2944 2910
3006 2910
3007 2910
3011 2910
3018 2910
3080 2910
3105 2910
3251 2910
3362 2910
3408 2910
3691 2910
4029 2910
5522 2910
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
3022 3017
3028 3017
3034 3017
4831 3550
4922 3550
5055 3550
5190 3550
5258 3550
5311 3573
5373 3573
5440 3573
6217 3616
6335 3616
6456 3616
6551 3616
5299 3642
5450 3642
5491 3642
5550 3642
5718 3642
3550 3648
3573 3648
3595 3648
3600 3648
3605 3648
3608 3648
3616 3648
3623 3648
3628 3648
3634 3648
3642 3648
3651 3648
3673 3648
3685 3648
3693 3648
3702 3648
3712 3648
3726 3648
3735 3648
3742 3648
3751 3648
3869 3648
3913 3648
5831 3648
6678 3648
9868 3648
9910 3648
9912 3648
4124 3685
4281 3685
4341 3685
4486 3685
5152 3685
5222 3685
3761 3751
3796 3751
3807 3751
3816 3751
3824 3751
3832 3751
3839 3751
3857 3751
3924 3913
3938 3913
4559 4486
4676 4486
4760 4486
4853 4486
5042 4486