I have been trying to execute a query and for some reason it returns 0 when there should be 1 in the result.
SELECT count(TaskID) AS DueToday FROM tasks WHERE TaskDueDate = CURRENT_DATE AND Completed = 'No'
I have tried NOW() and various others reference http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_current-date
however it will not return anything other than 0. the TaskDueDate is a DateTime.
Should i use something other than CURRENT_DATE in the query?