title: Passing an array to sqlite WHERE IN clause via FMDB?
body: <p>Is it possible to pass an array to a SELECT … WHERE … IN statement via FMDB?
  I tried to implode the array like this:</p>
  
  <pre><code>NSArray *mergeIds; // An array with NSNumber Objects
  NSString *mergeIdString = [mergeIds componentsJoinedByString:@","];
  
  NSString *query = @"SELECT * FROM items WHERE last_merge_id IN (?)";
  FMResultSet *result = [database executeQuery:query, mergeIdString];
  </code></pre>
  
  <p>This only works if there is exactly 1 object in the array, which leads me to believe that FMDB adds quotes around the whole imploded string.</p>
  
  <p>So I tried passing the array as is to FMDB's method:</p>
  
  <pre><code>NSArray *mergeIds; // An array with NSNumber Objects
  NSString *query = @"SELECT * FROM items WHERE last_merge_id IN (?)";
  FMResultSet *result = [database executeQuery:query, mergeIds];
  </code></pre>
  
  <p>Which doesn't work at all.</p>
  
  <p>I didn't find anything about it in the README or the samples on FMDB's github page.</p>
  
  <p>Thanks, Stefan</p>