Chameleon database 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 cm_posts.post_status='publish' AND cm_posts.post_type='events' AND c' at line 3]
SELECT DISTINCT YEAR(cm_posts.post_date)AS YEAR FROM cm_posts , cm_post2cat WHERE cm_posts.ID=cm_post2cat.post_id AND cm_post2cat.category_id= AND cm_posts.post_status='publish' AND cm_posts.post_type='events' AND cm_posts.deleted <> 1 AND cm_posts.post_date<= NOW()AND cm_posts.lang_id= 'en' ORDER BY YEAR DESC

File: /home/tec002/public_html/cm-site/assets/functions.php
Line: 821 Archive