fix possible malformed sql query on event type selection