Just got this... ??

Invalid SQL: SELECT thread.*, forum.title AS forumtitle,
forum.parentid AS parentid FROM thread LEFT JOIN forum ON (thread.forumid =
forum.forumid) WHERE thread.threadid= ORDER BY sticky DESC,dateline
DESC LIMIT 1
mysql error: You have an error in your SQL syntax near 'ORDER BY sticky DESC,dateline
DESC LIMIT 1' at line 3

mysql error number: 1064