Database error on event query: 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 9. Query=SELECT r.firstnamepref fname, r.lastnamepref lname, r.confirmation_no confirmation_no, r.photousage photousage, s.resourceformat resourceformat, s.resourcebio resourcebio, s.bus_name bus_name, DATE_FORMAT(s.resourcedate,'%l:%i%p') resourcetime, DATE_FORMAT(s.resourcedate,'%a %M %e') resourceday, s.resourceroom resourceroom, s.bus_desc bus_desc, s.id sessionid FROM reg r, regpresenter s WHERE r.confirmation_no=s.confirmation_no AND s.id=