title: Second argument of WHERE clause not working
body: <p>I'm baffled, I can't seem to understand why this simple thing it's not working.</p>
  
  <pre><code>SELECT id
  FROM users
  WHERE (DATE_FORMAT((birthday),'%m') = DATE_FORMAT(NOW(),'%m'))
  </code></pre>
  
  <p>So this brings me the ids of users whose birthday is in the current month. Now, if I add "AND active = 1"
  After the date_format clause, it stops working, brings me zero rows, and there are indeed users who meet the requirements, so, what's wrong with:</p>
  
  <pre><code>SELECT id
  FROM users
  WHERE (DATE_FORMAT((birthday),'%m') = DATE_FORMAT(NOW(),'%m')) AND active = 1
  </code></pre>