Error (Query): :

 SELECT  DATE_FORMAT(MIN(event.eventdate),'%Y-%m') AS firstdate, DATE_FORMAT(MAX(event.eventdateend),'%Y-%m') AS lastdate
 FROM event AS `event`
 JOIN menuusage
 WHERE menuusage.knam = 'event' AND menuusage.bkey = event.uid AND menuusage.akey IN (54) AND DATE_SUB( CURDATE(), INTERVAL 1 MONTH) <= .eventdate
 ORDER BY event.eventdate, event.title
Fatal error