title: How to use where_in using Active Record Codeigniter?
body: <p>I want to pass array to where_in using Active Record.</p>
  
  <p>I saw few reference link, can pass like this:</p>
  
  <pre><code>$this-&gt;db-&gt;where_in('id', array('20','15','22','42','86'));
  </code></pre>
  
  <p>Query : </p>
  
  <pre><code>$mts = $this-&gt;db-&gt;select('subcat_id')-&gt;get_where('subcategory_tbl', array('cat_id' =&gt; $cat_id));
  $result = $mts-&gt;result_array();
  </code></pre>
  
  <p>But My result Array in this form :</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [subcat_id] =&gt; 12
          )
  
      [1] =&gt; Array
          (
              [subcat_id] =&gt; 13
          )
  )
  </code></pre>
  
  <p>So how can i pass this array id to where_in clause ? I am confused here.</p>