title: How to query with a list of id in Bookshelf JS
body: <p>How can I get a list of records by PK in a single query using <a href="/questions/tagged/bookshelf.js" class="post-tag" title="show questions tagged &#39;bookshelf.js&#39;" rel="tag">bookshelf.js</a>?</p>
  
  <p>The end query should be equivalent to:</p>
  
  <pre><code>SELECT * FROM `user` WHERE `id` IN (1,3,5,6,7);
  </code></pre>