SELECT 
  category_id, 
  parent_id 
FROM 
  cscart_categories 
WHERE 
  parent_id IN(295, 373) 
  AND category_id != 264

Query time 0.00025

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "12.21"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "parent",
        "p_category_id"
      ],
      "key": "parent",
      "used_key_parts": [
        "parent_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 26,
      "rows_produced_per_join": 26,
      "filtered": "100.00",
      "index_condition": "(`cscartdevel`.`cscart_categories`.`parent_id` in (295,373))",
      "cost_info": {
        "read_cost": "9.61",
        "eval_cost": "2.60",
        "prefix_cost": "12.21",
        "data_read_per_join": "89K"
      },
      "used_columns": [
        "category_id",
        "parent_id"
      ],
      "attached_condition": "(`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
405 295
388 295
321 295
391 295
324 295
397 295
394 295
390 295
389 295
363 295
362 295
393 295
395 295
396 295
399 295
401 295
403 295
374 373