SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    43213, 43211, 43212, 43210, 43074, 4740, 
    13267, 30113, 32195, 1558, 36966, 36191, 
    119, 2191, 15171, 14416, 15968, 21225, 
    19916
  ) 
  AND category_id != 1

Query time 0.00094

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.275916799,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_categories",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "parent", "p_category_id"],
          "key": "parent",
          "key_length": "3",
          "used_key_parts": ["parent_id"],
          "loops": 1,
          "rows": 211,
          "cost": 0.275916799,
          "filtered": 100,
          "index_condition": "cscart_categories.parent_id in (43213,43211,43212,43210,43074,4740,13267,30113,32195,1558,36966,36191,119,2191,15171,14416,15968,21225,19916)",
          "attached_condition": "cscart_categories.category_id <> 1"
        }
      }
    ]
  }
}

Result

category_id parent_id
1532 119
1472 119
1330 119
1300 119
1251 119
1183 119
1179 119
936 119
906 119
890 119
839 119
304 119
239 119
219 119
120 119
2143 1558
2080 1558
2069 1558
2048 1558
2043 1558
1994 1558
1991 1558
1922 1558
1915 1558
1910 1558
1895 1558
1850 1558
1836 1558
1705 1558
1683 1558
1579 1558
1559 1558
4230 2191
4152 2191
4019 2191
3940 2191
3911 2191
3837 2191
3811 2191
3732 2191
2976 2191
2649 2191
2648 2191
2192 2191
4958 4740
5217 4740
5451 4740
5353 4740
4827 4740
5558 4740
35798 4740
4741 4740
29988 4740
34972 13267
14372 13267
14366 13267
14343 13267
14328 13267
14048 13267
13966 13267
13879 13267
13859 13267
13841 13267
13726 13267
13715 13267
13392 13267
13386 13267
13268 13267
15044 14416
14801 14416
14663 14416
14600 14416
15106 14416
14924 14416
14762 14416
14730 14416
14567 14416
14522 14416
14490 14416
14450 14416
14981 14416
14440 14416
14417 14416
15939 15171
15932 15171
15912 15171
15865 15171
15732 15171
15661 15171
15642 15171
15568 15171
15496 15171
15485 15171
15458 15171
15197 15171
15172 15171
19867 15968
19657 15968
19444 15968
19400 15968
19262 15968
19166 15968
18997 15968
18866 15968
18665 15968
18487 15968
18326 15968
17974 15968
17463 15968
17300 15968
17240 15968
16933 15968
16483 15968
16267 15968
16223 15968
16151 15968
15985 15968
15969 15968
10413 15968
43182 15968
21147 19916
21081 19916
21056 19916
20976 19916
20718 19916
20670 19916
20636 19916
20623 19916
20202 19916
20080 19916
19917 19916
21838 21225
21815 21225
21775 21225
21705 21225
21677 21225
21546 21225
21540 21225
21318 21225
21226 21225
43129 30113
32537 30113
31531 30113
5743 30113
30409 30113
32572 30113
30124 30113
31078 30113
31222 30113
31409 30113
31007 30113
5639 30113
31465 30113
30287 30113
31066 30113
32484 32195
32439 32195
32426 32195
32394 32195
32322 32195
32312 32195
32300 32195
32293 32195
32273 32195
32239 32195
32196 32195
36923 36191
36844 36191
36806 36191
36777 36191
36774 36191
36718 36191
36692 36191
36678 36191
36671 36191
36647 36191
36646 36191
36620 36191
36590 36191
36547 36191
36536 36191
36513 36191
36360 36191
36325 36191
36307 36191
36278 36191
36276 36191
36215 36191
36193 36191
36192 36191
36967 36966
37640 36966
37100 36966
37429 36966
37728 36966
40378 36966
40732 36966
40766 36966
41832 36966
41874 36966
41950 36966
37723 36966
35601 43074
11464 43074
4552 43074
4394 43074
4357 43074
42174 43074