title: Rails - conditional query with nil?
body: <p>Any ideas what's wrong with this?</p>
  
  <pre><code>    @contacts = current_user.contacts.where("fname = ? OR lname = ?", nil, nil)
  </code></pre>
  
  <p>I want all contacts where either the fname or lname is empty. </p>
  
  <p>Here is what it shows in the logs, not sure why it's not getting the records.</p>
  
  <pre><code> Contact Load (0.6ms)  SELECT "contacts".* FROM "contacts" WHERE ("contacts".user_id = 2) AND (fname = NULL OR lname = NULL)
  </code></pre>
  
  <p>Thoughts?</p>
  
  <p>Thanks</p>