Minor fix to event resource sql. Refs #110