fixed broken queries.
corrected query result check.
Merge pull request #538 from stopfstedt/fix-session-instructor-report

Fix session instructor report