1064 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 com.com_published = 1 and com.com_type='news' and com.flag_comment_delete='0' at line 1
in:
[select count(*) as total from crw_newsletters as c, crw_comment as com, crw_customers as cus where com.customers_id=cus.customers_id and com.content_id=c.id and com.content_id= and com.com_published = 1 and com.com_type='news' and com.flag_comment_delete='0']