Modified the Event class to use a slightly less insane SQL query