SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(21123) 
  AND category_id != 1

Query time 0.00004

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_categories",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "parent", "p_category_id"],
          "key": "parent",
          "key_length": "3",
          "used_key_parts": ["parent_id"],
          "ref": ["const"],
          "rows": 12,
          "filtered": 100,
          "attached_condition": "cscart_categories.category_id <> 1"
        }
      }
    ]
  }
}

Result

category_id parent_id
21124 21123
21125 21123
21126 21123
21127 21123
21128 21123
21129 21123
21132 21123
21133 21123
21134 21123
21135 21123
23211 21123
23212 21123