title: Query for multiple values at once
body: <p>In SQL, I can get a set of rows like this:</p>
  
  <pre class="lang-sql prettyprint-override"><code>SELECT * FROM table WHERE id in (2,3,5,7,11);
  </code></pre>
  
  <p>How does the equivalent sqlalchemy query look? <code>cls.id in [2,3,5,7,11]</code> evaluates to <code>False</code>, so this code:</p>
  
  <pre class="lang-py prettyprint-override"><code>q = meta.Session.query(cls)
  q = q.filter(cls.id in [2,3,5,7,11])
  return q.all()
  </code></pre>
  
  <p>fails with an exception:</p>
  
  <pre><code>  File "foo.py", line 1234, in findall_by_ids
      q = q.filter(cls.id in [2,3,5,7,11])
    File "&lt;string&gt;", line 1, in &lt;lambda&gt;
    File "/eggs/sqlalchemy/orm/query.py", line 50, in generate
      fn(self, *args[1:], **kw)
    File "/eggs/sqlalchemy/orm/query.py", line 1177, in filter
      "filter() argument must be of type "
  ArgumentError: filter() argument must be of type sqlalchemy.sql.ClauseElement
                 or string
  </code></pre>