SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    2924, 3141, 3029, 3186, 3273, 3337, 3429, 
    3741, 3977, 6245
  )

Query time 0.00080

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "92.78"
    },
    "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": 229,
      "rows_produced_per_join": 229,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "46.98",
        "eval_cost": "45.80",
        "prefix_cost": "92.78",
        "data_read_per_join": "1M"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`parent_id` in (2924,3141,3029,3186,3273,3337,3429,3741,3977,6245))"
    }
  }
}

Result

category_id parent_id
2930 2924
2935 2924
2942 2924
2948 2924
2957 2924
2970 2924
2975 2924
2982 2924
2988 2924
2994 2924
3081 2924
3086 2924
3090 2924
3098 2924
3106 2924
3117 2924
3051 3029
3066 3029
3071 3029
3078 3029
3097 3029
3100 3029
3115 3029
3139 3029
3148 3029
3150 3029
3157 3029
3180 3029
3151 3141
3249 3141
3280 3141
3307 3141
3399 3141
3193 3186
3198 3186
3202 3186
3210 3186
3214 3186
3220 3186
3235 3186
3266 3186
3277 3273
3303 3273
3325 3273
3329 3273
3341 3337
3346 3337
3463 3337
3467 3337
3471 3337
3481 3337
3489 3337
3495 3337
3500 3337
3537 3337
3565 3337
3575 3337
3584 3337
3589 3337
3592 3337
3723 3337
3729 3337
3733 3337
3740 3337
3749 3337
3757 3337
3762 3337
4118 3337
4162 3337
4182 3337
4208 3337
4230 3337
4248 3337
4263 3337
4297 3337
4309 3337
4488 3337
4526 3337
9581 3337
3430 3429
3432 3429
3434 3429
3437 3429
3458 3429
3464 3429
3465 3429
3466 3429
3475 3429
3484 3429
3497 3429
3499 3429
3503 3429
3506 3429
3508 3429
3510 3429
3525 3429
3536 3429
3543 3429
3544 3429
3547 3429
3554 3429
3556 3429
3566 3429
3571 3429
3576 3429
3579 3429
3582 3429
3747 3429
3780 3429
3794 3429
3810 3429
3842 3429
3881 3429
3899 3429
3922 3429
3966 3429
4066 3429
4112 3429
4241 3429
4279 3429
4333 3429
4490 3429
4707 3429
6535 3429
6675 3429
6812 3429
6900 3429
7013 3429
7167 3429
9021 3429
9331 3429
9334 3429
9626 3429
9629 3429
9633 3429
3756 3741
4505 3741
4531 3741
4542 3741
4574 3741
4595 3741
4789 3741
4802 3741
4824 3741
4838 3741
4893 3741
4898 3741
4925 3741
4959 3741
5009 3741
5020 3741
5028 3741
5032 3741
5033 3741
5040 3741
5059 3741
5075 3741
5114 3741
5149 3741
5293 3741
5301 3741
5313 3741
5327 3741
5335 3741
5347 3741
5352 3741
5369 3741
5377 3741
5417 3741
5422 3741
5428 3741
5429 3741
5482 3741
5509 3741
5515 3741
5537 3741
5539 3741
5544 3741
5552 3741
5558 3741
5560 3741
5567 3741
5574 3741
5607 3741
5627 3741
5760 3741
5783 3741
5815 3741
5836 3741
5864 3741
5884 3741
5910 3741
5942 3741
5982 3741
6021 3741
6059 3741
6080 3741
6579 3741
6735 3741
6841 3741
6999 3741
7163 3741
7273 3741
7378 3741
7984 3741
8038 3741
8097 3741
8137 3741
8223 3741
8304 3741
8706 3741
9024 3741
9329 3741
9332 3741
9524 3741
9528 3741
4006 3977
4034 3977
4070 3977
4222 3977
4397 3977
4738 3977
4768 3977
5284 3977
5392 3977
5424 3977
9336 3977
9525 3977