SELECT 
  a.category_id 
FROM 
  cscart_categories as a 
  LEFT JOIN cscart_categories as b ON b.category_id IN (499) 
WHERE 
  a.id_path LIKE CONCAT(b.id_path, '/%')

Query time 0.00030

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "b",
      "access_type": "const",
      "possible_keys": ["PRIMARY", "p_category_id"],
      "key": "PRIMARY",
      "key_length": "3",
      "used_key_parts": ["category_id"],
      "ref": ["const"],
      "rows": 1,
      "filtered": 100
    },
    "table": {
      "table_name": "a",
      "access_type": "ALL",
      "rows": 445,
      "filtered": 100,
      "attached_condition": "a.id_path like <cache>(concat('499','/%'))"
    }
  }
}

Result

category_id
528
503
530
533
546
548
515
514
525
537
524
534
550
516
527
545
551
517
523
538
544
553
539
547
554
540
518
531
541
519
526
542
552
562
543
549
521
535
522
532
536
529
558
559
560
561
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
606
607
630
631
632
633
634
635
637