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

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

Result

category_id
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856