title: how can I call multiple category by ID in a model in codeigniter?
body: <p>Model::::</p>
  
  <pre><code>public function selectCategory($per_page, $offset)
  {
      $this-&gt;db-&gt;select('*');
      $this-&gt;db-&gt;from('tbl_category');
      $this-&gt;db-&gt;where('category_id', 23);
      //$this-&gt;db-&gt;order_by("category_id", "desc"); 
  
      $query = $this-&gt;db-&gt;get('', $per_page, $offset);
      foreach ($query-&gt;result() as $row)
          $data[] = $row;
  
      return $data;
  } 
  </code></pre>
  
  <p>This model is working well. Now I want to call multiple id from my db table such as ::: </p>
  
  <pre><code> $this-&gt;db-&gt;where('category_id', 23 &amp;&amp; 24);
  </code></pre>
  
  <p>In this case it is showing error... "Message: Undefined variable: data" ... Help me to get multiple ids. </p>