title: Direct SQL query from Model in Codeigniter 4
body: <p>I'm trying to execute a SQL query directly from Model in CI 4</p>
  <p>Controller:</p>
  <pre><code>$homemodel = new \App\Models\home_model();
  
  $data['list'] = $homemodel-&gt;myquery();
  </code></pre>
  <p>Model:</p>
  <pre><code> public function myquery(){
  
    $query = &quot;SELECT id FROM tab_anagr WHERE var = 1&quot;;
          
    $query=$this-&gt;db-&gt;query($query);
        
    return $query-&gt;result_array();
                  
   }   
  </code></pre>
  <p>Does'nt work and I receive this error:</p>
  <blockquote>
  <p>Call to undefined method CodeIgniter\Database\MySQLi\Result::result_array()</p>
  </blockquote>
  <p>I would like to receive the array for the view.</p>