SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    298, 301, 303, 309, 312, 333, 375, 392, 
    399, 403, 406, 412, 414, 417, 436
  )

Query time 0.00043

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "30.49"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "ALL",
      "possible_keys": [
        "parent"
      ],
      "rows_examined_per_scan": 125,
      "rows_produced_per_join": 83,
      "filtered": "67.20",
      "cost_info": {
        "read_cost": "13.69",
        "eval_cost": "16.80",
        "prefix_cost": "30.49",
        "data_read_per_join": "343K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`cscart`.`cscart_categories`.`parent_id` in (298,301,303,309,312,333,375,392,399,403,406,412,414,417,436))"
    }
  }
}

Result

category_id parent_id
347 309
346 309
345 309
310 309
311 309
313 312
335 333
305 303
377 375
376 375
334 333
304 303
299 298
300 403
302 301
314 303
315 303
316 303
366 301
363 309
372 301
404 298
380 403
393 392
394 392
395 392
400 399
407 406
408 406
413 412
418 417
419 417
420 417
421 417
422 417
423 417
424 417
425 417
426 417
429 417
428 417
430 417
431 417
432 417
433 417
434 417
435 417