SELECT 
  category_id 
FROM 
  cscart_categories 
WHERE 
  id_path LIKE '22491/22857/%'

Query time 0.00025

JSON explain

{
  "query_block": {
    "select_id": 1,
    "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"],
          "rows": 19,
          "filtered": 100,
          "index_condition": "cscart_categories.id_path like '22491/22857/%'"
        }
      }
    ]
  }
}

Result

category_id
22858
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877