Fixed sql error in event list.