mySQL Error

There appears to be an error while trying to complete your request.

Query: SELECT page.*, template.*, user.name AS username
FROM page
LEFT JOIN template ON ( page.template_uid=template.template_uid )
LEFT JOIN user ON ( page.user_uid=user.user_uid )
WHERE ( page.namespace_uid = AND page.uri='dummy' )
ORDER BY code, title
LIMIT 10;

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND page.uri='dummy' )
ORDER BY code, title
LIMIT 10' at line 5

mySQL error code: 1064

Date: February 7, 2012, 5:06 pm