optimize event queries, RT#28978, possible MySQL band-aid, RT#28978
MySQL support, RT#28895