... aus der SQL reference:
The table name of a common table expression can only be referenced in the
select-statement, INSERT statement, or CREATE VIEW statement that defines it.

D*B

PS: CTEs sind ohnehin eher ein Verwirr feature und nur in wenigene Fällen sinnvoll (recursive CTE). In allen anderen Fällen sind Views die bessere Lösung, oft sogar nested selects.