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 'join' at line 1 IN (SELECT * FROM telos_portlet_content_article a, telos_stream_content c WHERE a.ContentID=c.ContentID AND c.ContentID=join)