Database error
Invalid SQL: SELECT Festivals.id, Festivals.name, Festivals.ListingBlurb, Festivals.section, Festivals.url, MIN(EventTimes.time) AS StartDate, MAX(EventTimes.time) AS EndDate FROM Festivals INNER JOIN Events ON Festivals.id = Events.festival_id OR Festivals.id = Events.festival2_id LEFT JOIN EventTimes ON Events.id = EventTimes.event_id WHERE Festivals.section = 'Summer Festivals' AND Festivals.display = 1 GROUP BY Festivals.id HAVING MAX(EventTimes.time) < NOW() ORDER BY StartDate DESC LIMIT 0, -2
Session halted.