SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    3761, 5602, 3658, 3924, 3772, 4233, 5940, 
    5299, 6217, 4124, 4559, 3964, 3897, 
    6834, 3878, 5490, 6800, 4831, 7676, 
    6399, 5311, 7319, 3796, 3659, 3905, 
    5653, 3778, 6335, 6019, 5450, 4676, 
    4281, 6913, 3890, 3938, 6923, 4922, 
    5534, 4284, 7642, 5373, 6526, 3660, 
    6456, 3807, 5491, 4341, 4760, 3949, 
    6984, 3786, 6070, 5581, 5055, 5440, 
    6551, 3664, 7068, 3816, 4486, 4853, 
    5550, 5638, 5190, 3669, 7262, 3824, 
    5152, 5042, 5718, 5683, 5258, 7327, 
    3832, 5222, 5729, 7580, 3839, 5808, 
    7658, 3857, 5906, 7733, 6010, 7779, 
    6110, 7828, 6247, 7904, 6659, 7085, 
    7223, 3550, 3573, 3595, 3600, 3605, 
    3608, 3616, 3623, 3628, 3634, 3642, 
    3651, 3666, 3673, 4310, 3685, 4726, 
    3693, 3702, 3712, 3726, 3735, 3742, 
    3751, 3869, 3913, 5831, 6678
  )

Query time 0.00146

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "77.95"
    },
    "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": 192,
      "rows_produced_per_join": 192,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "39.55",
        "eval_cost": "38.40",
        "prefix_cost": "77.95",
        "data_read_per_join": "1M"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`parent_id` in (3761,5602,3658,3924,3772,4233,5940,5299,6217,4124,4559,3964,3897,6834,3878,5490,6800,4831,7676,6399,5311,7319,3796,3659,3905,5653,3778,6335,6019,5450,4676,4281,6913,3890,3938,6923,4922,5534,4284,7642,5373,6526,3660,6456,3807,5491,4341,4760,3949,6984,3786,6070,5581,5055,5440,6551,3664,7068,3816,4486,4853,5550,5638,5190,3669,7262,3824,5152,5042,5718,5683,5258,7327,3832,5222,5729,7580,3839,5808,7658,3857,5906,7733,6010,7779,6110,7828,6247,7904,6659,7085,7223,3550,3573,3595,3600,3605,3608,3616,3623,3628,3634,3642,3651,3666,3673,4310,3685,4726,3693,3702,3712,3726,3735,3742,3751,3869,3913,5831,6678))"
    }
  }
}

Result

category_id parent_id
4831 3550
4922 3550
5055 3550
5190 3550
5258 3550
5311 3573
5373 3573
5440 3573
5490 3595
5534 3595
5581 3595
5638 3595
5683 3595
5729 3595
5808 3595
5906 3595
6010 3595
6110 3595
6247 3595
6659 3595
7085 3595
7223 3595
7319 3600
7642 3600
7676 3605
6834 3608
6913 3608
6984 3608
7068 3608
7262 3608
7327 3608
7580 3608
7658 3608
7733 3608
7779 3608
7828 3608
7904 3608
6217 3616
6335 3616
6456 3616
6551 3616
5299 3642
5450 3642
5491 3642
5550 3642
5718 3642
3658 3651
3659 3651
3660 3651
3664 3651
3666 3651
3669 3651
4310 3651
4726 3651
4233 3666
4284 3666
4124 3685
4281 3685
4341 3685
4486 3685
5152 3685
5222 3685
3964 3693
3949 3726
3897 3735
3905 3735
3761 3751
3796 3751
3807 3751
3816 3751
3824 3751
3832 3751
3839 3751
3857 3751
3772 3761
3778 3761
3786 3761
3878 3869
3890 3869
3924 3913
3938 3913
4559 4486
4676 4486
4760 4486
4853 4486
5042 4486
5602 5550
5653 5550
5940 5831
6019 5831
6070 5831
6399 6247
6526 6247
6800 6659
6923 6659