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 TALKSHOW.id = HAS_EPISODE.show_id AND HAS_EPISODE.ep_id = HAS_GUEST.ep_id AN' at line 1