title: CTE incorrect syntax near ")"
body: <p>I'm trying to use a sql query that has the following structure:</p>
  
  <pre><code>WITH 
  table1 
      AS (QUERY1)
  , table2 
      AS (QUERY2)
  , myCTE (COLUMNS OF THE CTE)
      AS (CTE_QUERY)  
      SELECT * FROM myCTE),
   ,anotherCTE...
  </code></pre>
  
  <p>I'm getting an "Incorrect syntax error near ')' near "myCTE)".</p>