Fix query for finding an Attendance