title: Codeigniter how to use get_where/or_where together to return a result_array
body: <p>I am trying to get a <code>result_array()</code> from a database which two columns must return true, and vise-versa so I decided to use <code>or_where</code> but my code is returning <code>Call to undefined method CI_DB_mysqli_result::or_where()</code> error, any advice how can achieve this? </p>
  
  <p>I am using below code on inside my CI_Model.</p>
  
  <pre><code>public function check_request($userid, $senderid){
       $query = $this-&gt;db-&gt;get_where('connection',array('user_id' =&gt; $userid, 'sender_id' =&gt; $senderid));
       $query = $this-&gt;db-&gt;or_where('connection',array('sender_id' =&gt; $userid, 'user_id' =&gt; $senderid));
       return $query-&gt;result_array();
  }
  </code></pre>