title: Rails .where query not working
body: <p>I have a table called Toys that has the columns <code>toy_id, company_id, store_id, name and description</code></p>
  
  <p>I am trying to do a query on the table like the following:
  <code>toys = @company.toys.where("store_id = ? AND (name LIKE ? OR description LIKE ?)", params[:store_id], params[:query], params[:query]</code></p>
  
  <p>The idea is if the user goes to the following url: <code>https://myapp.com/api/toys/search?store_id=8&amp;query="robot"</code> that it will return all the toys for the store denoted by <code>store_id</code> that have a <code>name</code> or <code>description</code> LIKE <code>robot</code>. Each time it returns empty JSON. Not exactly sure why? Any help or guidance would be appreciated. </p>