SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    276, 66, 7, 597, 1, 36, 226, 325, 400, 29, 
    41, 59, 614, 58, 57, 151, 257, 170, 181, 
    436, 639, 660, 666
  )

Query time 0.00072

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "57.96"
    },
    "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": 116,
      "rows_produced_per_join": 116,
      "filtered": "100.00",
      "index_condition": "(`dbggbern`.`cscart_categories`.`parent_id` in (276,66,7,597,1,36,226,325,400,29,41,59,614,58,57,151,257,170,181,436,639,660,666))",
      "cost_info": {
        "read_cost": "46.36",
        "eval_cost": "11.60",
        "prefix_cost": "57.96",
        "data_read_per_join": "464K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ]
    }
  }
}

Result

category_id parent_id
3 1
64 1
19 1
21 1
49 1
16 7
8 7
9 7
10 7
22 7
27 7
28 7
39 7
167 7
168 7
500 7
30 29
34 29
35 29
50 29
51 29
395 29
37 36
52 36
53 36
54 36
55 36
154 36
499 36
587 36
589 36
48 41
47 41
42 41
43 41
56 41
94 57
664 57
258 57
291 57
298 57
322 57
323 57
336 57
337 57
363 57
405 57
371 57
372 57
437 57
478 57
486 57
503 57
505 57
562 57
572 57
613 57
618 57
619 57
622 57
627 57
632 57
663 57
130 58
136 58
137 58
247 58
364 58
110 59
116 59
117 59
118 59
274 59
496 59
549 66
577 66
611 66
612 66
623 66
173 151
174 151
175 151
213 170
300 170
301 170
302 181
303 181
304 181
305 181
306 181
334 181
227 226
228 226
229 226
230 226
231 226
435 226
329 325
330 325
331 325
332 325
335 325
441 400
442 400
443 400
444 400
445 400
447 400
598 597
599 597
615 614
616 614
617 614
652 614