SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(295, 308, 313, 317, 383) 
  AND category_id != 264

Query time 0.00033

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "7.91"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "ALL",
      "possible_keys": [
        "PRIMARY",
        "parent",
        "p_category_id"
      ],
      "rows_examined_per_scan": 68,
      "rows_produced_per_join": 37,
      "filtered": "55.88",
      "cost_info": {
        "read_cost": "4.11",
        "eval_cost": "3.80",
        "prefix_cost": "7.91",
        "data_read_per_join": "130K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "((`cscartdevel`.`cscart_categories`.`parent_id` in (295,308,313,317,383)) and (`cscartdevel`.`cscart_categories`.`category_id` <> 264))"
    }
  }
}

Result

category_id parent_id
306 295
305 295
303 295
302 295
301 295
300 295
296 295
298 295
299 295
311 308
309 308
405 295
388 295
321 295
391 295
324 295
325 308
397 295
331 313
394 295
407 313
390 295
384 383
385 383
389 295
363 295
362 295
361 317
360 317
359 317
381 313
393 295
395 295
396 295
399 295
401 295
402 383
403 295
406 313