SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(
    216, 204, 210, 212, 211, 213, 209, 217, 
    215, 214, 208, 218
  ) 
  AND category_id != 264

Query time 0.00028

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "20.20"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "ALL",
      "possible_keys": [
        "PRIMARY",
        "parent",
        "p_category_id"
      ],
      "rows_examined_per_scan": 84,
      "rows_produced_per_join": 18,
      "filtered": "21.43",
      "cost_info": {
        "read_cost": "16.60",
        "eval_cost": "3.60",
        "prefix_cost": "20.20",
        "data_read_per_join": "46K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "((`danishecarter_may_2024`.`cscart_categories`.`parent_id` in (216,204,210,212,211,213,209,217,215,214,208,218)) and (`danishecarter_may_2024`.`cscart_categories`.`category_id` <> 264))"
    }
  }
}

Result

category_id parent_id
212 211
208 204
209 204
210 204
213 211
214 211
216 215
217 215
218 215