optimize event queries, RT#28978, possible MySQL band-aid, RT#28978
Merge branch 'master' of git.freeside.biz:/home/git/freeside