title: Use column number from select clause in where clause. Extracting allias original name
body: <p>So lets say i have a query like this</p>
  
  <pre><code>    SELECT a as d,b,c FROM myTable
      WHERE a=1;
  </code></pre>
  
  <p>Is it possible  instead of 
  a=1 to type something like SELECTED.1 = 1 or to somehow extract allias original name since d=1 doesn't work</p>