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 (content.cn_shw ='x') AND (content.cn_pub <= CURDATE()) AND (content.cn_e' at line 1