SELECT base_n.id AS n___id , base_n.name AS n___name , base_n.shortname AS n___shortname , base_n.dynamic_template AS n___dynamic_template , base_n.class_id AS n___class_id , base_n.parent_id AS n___parent_id , base_n.owner AS n___owner , base_n.admin_url AS n___admin_url , base_n.subtree_order AS n___subtree_order , base_n.absolute_path AS n___absolute_path , base_n.time_created AS n___time_created , base_n.time_updated AS n___time_updated , base_fv_0.date AS n___date , base_fv_0.image AS n___image , base_fv_0.short_text AS n___short_text , base_fv_0.full_text AS n___full_text , base_fv_0.file AS n___file , base_fv_0.source AS n___source , base_fv_0.source_url AS n___source_url , base_fv_0.topnews AS n___topnews , base_fv_0.our_news AS n___our_news FROM dbm_nodes base_n JOIN dbm_nfv_news base_fv_0 ON base_fv_0.node_id=base_n.id WHERE (UNIX_TIMESTAMP(base_fv_0.date)<=UNIX_TIMESTAMP(NOW()) AND UNIX_TIMESTAMP(base_fv_0.date)<) ORDER BY base_fv_0.date DESC LIMIT 0,1
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 ') ORDER BY base_fv_0.date DESC LIMIT 0,1' at line 25