Problema: 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 '' at line 1
En la query: SELECT * from cep_posts where type='post' and published='1' and catid='1' AND tags LIKE '%tag%' order by datetime DESC limit 0,