When I use this query:
SELECT COUNT(*) FROM `my_table` WHERE DATEDIFF(NOW(), updated) > 2
MySQL executes the query with no errors and I get the count of rows that have not been updated within the last 2 days. However, if I change the query like this:
SELECT * FROM `my_table` WHERE DATEDIFF(NOW(), updated) > 2
I get the following error:
#1305 - FUNCTION mydatabase.DATEDIFF does not exist
Any ideas why this is so?