Unknown column 'pastevents' in 'where clause' IN (SELECT * FROM event WHERE EventID=pastevents AND GroupID=7)