WHERE section gets messed up
Posted: Wed 09 Sep 2020 11:08
I have the following WHERE:
If I do anything on the query builder, this gets rewritten to:
Which is not right. Why?
Code: Select all
WHERE YEAR(entries.timestamp) = YEAR(CURRENT_DATE()) AND MONTH(entries.timestamp) = MONTH(CURRENT_DATE())
Code: Select all
WHERE YEAR(CURRENT_DATE(), MONTH(entries.timestamp) = MONTH(CURRENT_DATE()))