title: Query to select multiple records from same column with CodeIgniter
body: <p>I am trying to get records from same column. I want to get the farm codes from two IDs, I tried following with help of CodeIgniter documentation but it doesn't work.</p>
  
  <pre><code>        $this-&gt;db-&gt;select('fa_code');
          $this-&gt;db-&gt;where('fa_id', $by);
          $this-&gt;db-&gt;where('fa_id', $from);
          $res=$this-&gt;db-&gt;get('tukai_farms')-&gt;result();
  </code></pre>
  
  <p>What is wrong? Don't we use AND with same field?</p>