SELECT 
  category_id 
FROM 
  cscart_categories 
WHERE 
  id_path LIKE '22491/22650/22651/%'

Query time 0.00004

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/22650/22651/%'"
        }
      }
    ]
  }
}

Result

category_id
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674