 <p>You need to use single quotes instead of double quotes. </p> <p>You can find the MySQL date functions at <a href="http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html</a></p>