title: error in codeigniter 4 You must set the database table to be used with your query
body: <p>i am working codeigniter 4. i am trying to fetch data from database by creating method in Model but am getting error</p>
  <blockquote>
  <p>You must set the database table to be used with your query</p>
  </blockquote>
  <p>even I have mentioned the table name in query builder. i dun know why this is happening ? following is my code</p>
  <pre><code> public function Login($values)
      {
          $db = \Config\Database::connect();
    
          $result= $db-&gt;table('tbl_adminuser')
                       -&gt;where(['username',$values['username']])
                       -&gt;where(['password',$values['password']])
                       -&gt;get()
                       -&gt;getResult();
          print_r($result);
      }
  </code></pre>