Optimize attendance list query

Signed-off-by: Jonathan Dieter <jdieter@lesbg.com>