SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(323, 325, 327, 330, 331, 333, 321) 
  AND category_id != 264

Query time 0.00031

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "23.28"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "ALL",
      "possible_keys": [
        "PRIMARY",
        "parent",
        "p_category_id"
      ],
      "rows_examined_per_scan": 98,
      "rows_produced_per_join": 18,
      "filtered": "19.39",
      "cost_info": {
        "read_cost": "19.48",
        "eval_cost": "3.80",
        "prefix_cost": "23.28",
        "data_read_per_join": "63K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "((`danishecarter_latest`.`cscart_categories`.`parent_id` in (323,325,327,330,331,333,321)) and (`danishecarter_latest`.`cscart_categories`.`category_id` <> 264))"
    }
  }
}

Result

category_id parent_id
322 321
323 321
324 321
325 321
326 321
327 321
328 321
329 321
330 321
331 321
332 321
333 321
334 321