title: Query error: No tables used in php codeigniter
body: <pre><code>*In my model send_credentials_user*
  public function send_credentials_user($id){
      $this-&gt;db-&gt;select('*');
      $this-&gt;db-&gt;from('users');
      $this-&gt;db-&gt;where('id', $id);
  
      $query = $this-&gt;db-&gt;get();
  
      if ($query-&gt;num_rows() &gt; 0) {
          $user = $query-&gt;row();
          log_message('error',$user);
      }
      else return FALSE;
  }
  </code></pre>
  
  <p>Why i am unable to query the database.I am using proper table name.But i am still getting the same error.</p>