Fix for sessions with taken attendance show twice in student report.

The two queries have been refactored into a single query using UNION

The issue: https://github.com/danmarsden/moodle-mod_attendance/issues/3