SELECT 
  category_id 
FROM 
  cscart_categories 
WHERE 
  id_path LIKE '22491/22939/22993/%'

Query time 0.00005

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": 15,
          "filtered": 100,
          "index_condition": "cscart_categories.id_path like '22491/22939/22993/%'"
        }
      }
    ]
  }
}

Result

category_id
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009