You'll need more than that. Your FROM clause is missing, which is why the error says 'Huh?' -- you haven't told it where to look.
SELECT DATEDIFF(table1.row1, table2.row2)
FROM table1, table2
WHERE table1.something=table2.something
If you generate these rows with previous queries, you CAN say:
$result=mysql_query("
SELECT DATEDIFF('$sometable1result', '$sometable2result')");
and retrieve the result.
In this case, you are asking the database to return data from two constants, not from two table rows.