title: PhpStorm unable to resolve column for multiple database connections
body: <p>I have only been using PhpStorm a week or so, so far all my SQL queries have been working fine with no errors after setting up the database connection. This current code actually uses a second database (one is for users the other for the specific product) so I added that connection in the database tab too but its still giving me a 'unable to resolve column' warning. </p>
  
  <p>Is there a way to see what database its looking at? Will it work with multiple databases? Or have I done something else wrong?</p>
  
  <p>Error below:</p>
  
  <p><a href="https://i.stack.imgur.com/huVMY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/huVMY.png" alt="error message"></a></p>
  
  <pre><code>$this-&gt;db-&gt;setSQL("SELECT T1.*, trunc(sysdate) - trunc(DATE_CHANGED) EXPIRES FROM " . $this-&gt;tableName . " T1 WHERE lower(" . $this-&gt;primaryKey . ")=lower(:id)")
  </code></pre>
  
  <p>Also here is what my database settings window looks like as seen some people having problems with parameter patterns causing this error but I'm fairly sure that is not the issue here:</p>
  
  <p><a href="https://i.stack.imgur.com/Juw8B.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Juw8B.png" alt="database settings"></a></p>
  
  <p>Using PhpStorm 10.0.3</p>