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 shows.id=content_id.item_id AND content_id.withdrawn = 0 AND content_i' at line 4