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 '' at line 3

select at.articles_id from articles a JOIN articles_to_topics at on a.articles_id = at.articles_id AND at.topics_id <> 3 WHERE a.articles_id =

TEP_DB_ERRORR