title: Multiple where conditions in Rails
body: <p>I'm implementing a user search feature in my Rails app. However, I don't want admins to appear in the search results.</p>
  
  <p>I'm trying this:</p>
  
  <pre><code>User.where(:admin =&gt; [nil, false], ["name LIKE ?", "%#{params[:query]}%"])
  </code></pre>
  
  <p>But I get this error:</p>
  
  <pre><code>syntax error, unexpected ')', expecting tASSOC
  </code></pre>
  
  <p>So how do I properly list <code>where</code> clauses inside the parentheses?</p>