title: Code Igniter - remove single quotes from where_in
body: <p>I have 2 queries:</p>
  
  <pre><code>$genres = $this-&gt;db-&gt;select('Group_Concat(intGenreId) strDJGenres')
                                  -&gt;from('tblDJGenres')
                                  -&gt;where('intDJId', $this-&gt;session-&gt;userdata('non_admin_userid'))
                                  -&gt;get()
                                  -&gt;row();
  
              $results = $this-&gt;db-&gt;select('tblTracks.*, tblGenres.strName as strGenreName')
                                  -&gt;from('tblTracks')
                                  -&gt;join('tblGenres', 'tblTracks.intGenreId = tblGenres.intGenreId', 'left')
                                  -&gt;where_in('tblTracks.intGenreId', $genres-&gt;strDJGenres)
                                  -&gt;get()
                                  -&gt;result();
  </code></pre>
  
  <p>The first query is returning a string such as </p>
  
  <blockquote>
    <p>'1,2,3,4,8,6,5,7,45,66'</p>
  </blockquote>
  
  <p>which I am using in my where_in clause on the second query. The issue is that with this string, it is writing the SQL like:</p>
  
  <pre><code>SELECT `tblTracks`.*, `tblGenres`.`strName` as strGenreName FROM (`tblTracks`) LEFT JOIN `tblGenres` ON `tblTracks`.`intGenreId` = `tblGenres`.`intGenreId` WHERE `tblTracks`.`intGenreId` IN ('1,2,3,4,8,6,5,7,45,66') 
  </code></pre>
  
  <p>With the quote around it, it is treated as a single value. How can I get the second query to perform how I want it? ie </p>
  
  <pre><code>.... where `tblTracks`.`intGenreId` IN (1,2,3,4,8,6,5,7,45,66) 
  </code></pre>