SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    344, 372, 395, 365, 388, 312, 348, 287, 
    324, 288, 389, 373, 313, 366, 345, 340, 
    349, 325, 334, 367, 390, 289, 350, 346, 
    314, 341, 374, 351, 375, 368, 315, 290, 
    391, 347, 326, 342, 376, 369, 392, 316, 
    291, 393, 292, 377, 329, 387, 294, 394, 
    318, 330, 295, 317, 293, 296, 266, 268, 
    343, 286, 364, 371, 396, 397, 398, 399
  )

Query time 0.00069

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_categories",
          "access_type": "ALL",
          "possible_keys": ["parent"],
          "rows": 70,
          "filtered": 100,
          "attached_condition": "cscart_categories.parent_id in (344,372,395,365,388,312,348,287,324,288,389,373,313,366,345,340,349,325,334,367,390,289,350,346,314,341,374,351,375,368,315,290,391,347,326,342,376,369,392,316,291,393,292,377,329,387,294,394,318,330,295,317,293,296,266,268,343,286,364,371,396,397,398,399)"
        }
      }
    ]
  }
}

Result

category_id parent_id
287 286
312 318
288 286
313 318
289 286
314 318
290 286
315 318
291 286
316 318
329 318
292 286
330 318
294 286
318 266
319 266
295 286
317 318
293 286
296 286
348 340
286 266
344 343
345 343
346 343
347 343
349 340
350 340
351 340
365 377
366 377
367 377
368 377
369 377
372 393
373 393
374 393
375 393
376 393
377 364
387 364
388 387
389 387
390 387
391 387
392 387
393 371
394 371
395 394
396 394
397 394
398 394
399 394