SELECT 
  category_id 
FROM 
  cscart_categories 
WHERE 
  id_path LIKE '313/%'

Query time 0.00022

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.007571015,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_categories",
          "access_type": "range",
          "possible_keys": ["id_path"],
          "key": "id_path",
          "key_length": "767",
          "used_key_parts": ["id_path"],
          "loops": 1,
          "rows": 35,
          "cost": 0.007571015,
          "filtered": 100,
          "attached_condition": "cscart_categories.id_path like '313/%'",
          "using_index": true
        }
      }
    ]
  }
}

Result

category_id
357
574
575
576
577
578
359
579
580
581
361
587
588
589
590
591
363
592
593
594
595
596
571
582
583
584
585
586
572
597
598
599
600
601
573