title: Oracle invalid identifier in select query in WITH section
body: <p>Why do I get an invalid identifier error in this query?</p>
  <pre class="lang-sql prettyprint-override"><code>with
        select
             notif_set_code as notification_code
           , (
              select tab_to_string(
                 cast(collect(
                    case
                       when area_type is not null then
                          count(*) || ' ' || area_type
                       else 'default'
                    end
                 ) as t_varchar2_tab), ' ,')
              from my_table_2
              where notif_set_code = nsd.notification_code 
           ) areas
        from my_table nsd
  ...
  
  </code></pre>
  <p>It sayd <code>nsd.notification_code</code> is not a valid identifier.<br />
  Using <code>nsd.notif_set_code</code> works if it's not in a with clause!</p>