SELECT a.paTitle, a.paDescr, g.pgName FROM PLT_activities a, PLT_guides g WHERE a.pgid = g.pgid AND a.paid IN () ORDER BY a.pgid, a.paTitle /home/earthsky/public_html/teachers/article.php 135 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 ') ORDER BY a.pgid, a.paTitle' at line 1