title: where clause did not work with WITH
body: <p>where clause did not work with WITH when i wrote  <strong>where Prse ='h'</strong> it shows me an error 'Invalid column'</p>
  
  <pre><code>;with cT(FLDID  ,FLD10  ,FLD610)
  as
  (
  select  * from Table556 
  inner join Table555 on table555.FLD9=FLD318
  where FLD610=150 
  )
  
  select case when fld609 &lt;=12 then 'h' else 's' end as Prse,* from cT 
  where Prse ='h'
  </code></pre>