Error: SELECT c.*, TIME(date_from) as starttime, TIME(date_to) as endtime FROM fip_mod_congress c,fip_mod_congresssectionxsession cxp WHERE cxp.session_id=c.id AND cxp.section_id=3) ORDER BY cxp.ordernr,c.date_from AND c.site_id=3You 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 cxp.ordernr,c.date_from AND c.site_id=3' at line 6