Unknown column 'e.event_type' in 'where clause'