DATABASE ERROR:
SELECT c.*, DATE_FORMAT(c.pubdate, '%a, %d %b %Y %H:%i:%s GMT') as pubdate, cat.title as category
				FROM cms_content c, cms_category cat
				WHERE c.published=1 AND c.category_id = cat.id AND c.category_id = cat.id AND cat.NSLeft >=  AND cat.NSRight <= 
				ORDER by c.pubdate DESC
				LIMIT 25
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 cat.NSRight <= ORDER by c.pubdate DESC LIMIT 25' at line 3