Fatal error: 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 Active = 1 ORDER BY BeginTime' at line 21

Query: SELECT ID, UID, DayIndex, Title_LNG2 as DayTitle, Title_LNG2 as Title, ShortTitle_LNG2 as ShortTitle, InfoText1_LNG2 as InfoText1, InfoText2_LNG2 as InfoText2, BeginTime, EndTime, Description_LNG2 as Description, ShortDescription_LNG2 as ShortDescription, ShortDescriptionList_LNG2 as ShortDescriptionList, Comments_LNG2 as Comments, VideoUrl FROM GDE_Other_Services_CompVisits WHERE ID = AND Active = 1 ORDER BY BeginTime in /usr/local/www/data/andel3w.com/www/GE/lib/GE.MySQL.lib.php on line 238