title: Using a custom query to select items where their id exists within a list of IDs
body: <p>In dapper you can do something like:</p>
  
  <pre><code>var items = connection.Query&lt;Items&gt;("SELECT * FROM `@database`.`table`  WHERE `id` IN @idList;", new {database = DatabaseName, idList = someList.Select(n =&gt; n.id)});
  </code></pre>
  
  <p>trying to do the same in ormlite:</p>
  
  <pre><code>var items = connection.Query&lt;Items&gt;("SELECT * FROM {0}`.`table`  WHERE `id` IN {1};", DatabaseName, someList.Select(n =&gt; n.id)});
  </code></pre>
  
  <p>returns an error. Dapper creates the query as such:</p>
  
  <pre><code>SELECT * FROM `someDB`.`table` WHERE `id` IN (1,2,3,4);
  </code></pre>
  
  <p>where ormlite generates:</p>
  
  <pre><code>SELECT * FROM `someDB`.`table` WHERE `id` IN [1,2,3,4];
  </code></pre>
  
  <p>The square brackets aren't valid in MySQL. Is it possible to do this in ormlite? </p>
  
  <p>When I try using the anonymous class to list parameters, as in the dapper example, it can't find the second parameter.</p>