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 GDE_Trips.Active = 1 ORDER BY BeginTime' at line 24

Query: SELECT GDE_Trips.ID, GDE_Trips.UID, GDE_Trips.DayIndex, GDE_Trips_Days.Title_LNG1 as DayTitle, GDE_Trips.Title_LNG1 as Title, GDE_Trips.ShortTitle_LNG1 as ShortTitle, GDE_Trips.Price, GDE_Trips.BeginTime, GDE_Trips.EndTime, GDE_Trips.Description_LNG1 as Description, GDE_Trips.ShortDescription_LNG1 as ShortDescription, GDE_Trips.ShortDescriptionList_LNG1 as ShortDescriptionList, GDE_Trips.Comments_LNG1 as Comments, GDE_Trips.VideoUrl FROM GDE_Trips LEFT JOIN GDE_Trips_Days ON GDE_Trips.DayIndex = GDE_Trips_Days.ID WHERE GDE_Trips.ID = AND GDE_Trips.Active = 1 ORDER BY BeginTime in /usr/local/www/data/andel3w.com/www/GE/lib/GE.MySQL.lib.php on line 238