Fixed scope of trainees for meal seating

Now it will get only active trainees, rather than all.