title: CodeIgniter Delete where condition and where not in given array
body: <p>How to run delete query in Codeigniter. I have set of array and a key. In MySQL my query run perfectly. </p>
  
  <pre><code>DELETE FROM `TABLE` WHERE `style_id`=2 &amp;&amp; `ID` NOT IN (5,9,12)
  </code></pre>
  
  <p>In Codeigniter how to write and run this query. I tried below code but not working.</p>
  
  <pre><code>$ids = '5,9,12';
  $this-&gt;db-&gt;where('style_id', $style_id)-&gt;where_not_in('ID', $ids);
  $this-&gt;db-&gt;delete('TABLE');
  </code></pre>