Fixing bug in appointment_report

Mantis issue 727:

No report is being generated if you selected yes for completed. No,does seem to work.

This was caused by incorrectly linking to the queue_has_participant table.