You're using SQL Server function syntax in MySQL. The correct syntax for MySQL's DATEDIFF
is:
DATEDIFF(expr1,expr2)
For example,
SELECT DATEDIFF(CURDATE(), '2013-11-10 23:59:59')
Returns
> 10
You can replace the static date in the example with the name of the column from your table.
Use the DBMS documentation