title: Fatal error: Call to undefined method CI_DB_mysqli_driver::result()
body: <p>I have tried many ways to join two tables but showing error. showing fatal error.i am beginner in CodeIgniter.</p>
  
  <p>On Model my function is this</p>
  
  <pre><code>$quer=$this-&gt;db-&gt;select('*')-&gt;from('assign_tble')
  -&gt;join('course_details','assign_tble.ccode=course_details.ccode','LEFT')
  -&gt;where('assign_tble.scode',$userID);
  return $quer-&gt;result(); 
  </code></pre>
  
  <p>while running it is showing fatal error </p>
  
  <blockquote>
    <p>Fatal error: Call to undefined method CI_DB_mysqli_driver::result() in
    C:\wamp\www\keitauniv\application\models\AllCourses_m.php on line 41
    Message: Call to undefined method CI_DB_mysqli_driver::result()</p>
  </blockquote>
  
  <p>this is the error showing while running.</p>