title: Can't select from SQL-View in CodeIgniter
body: <p>When I try this</p>
  
  <pre><code>$this-&gt;db-&gt;query('SELECT * FROM WMY_VIEW WHERE id_bla = ? 
  ORDER BY bla, blabla', array($bla))-&gt;result_array();
  </code></pre>
  
  <p>I'm getting this error</p>
  
  <pre><code>Query error: ERROR:  relation "WMY_VIEW" does not exist.
  </code></pre>
  
  <p>WMY_VIEW is a sql-view, not a table. BUT in regular php, it works</p>
  
  <pre><code>$sql = "SELECT * FROM WMY_VIEW WHERE id_bla=".$bla." ORDER BY bla, blabla";
  $results = pg_query(CONEXION, $sql);
  </code></pre>
  
  <p>What's the problem with CI? What I'm missing?</p>
  
  <p>PS: Database (<code>PostgreSQL</code>) it's not mine.</p>