diff --git a/admin/tours_sa.php b/admin/tours_sa.php index 8e9751a..d8bf905 100644 --- a/admin/tours_sa.php +++ b/admin/tours_sa.php @@ -209,8 +209,11 @@ $q=mysql_query("SELECT students.id,students.grade, students.schools_id, students.firstname, students.lastname FROM students + LEFT JOIN registrations ON registrations.id=students.registrations_id WHERE students.year='{$config['FAIRYEAR']}' + AND ( registrations.status='complete' + OR registrations.status='paymentpending' ) ORDER BY students.id ");