diff --git a/admin/reports_committees.inc.php b/admin/reports_committees.inc.php index 104e3945..442a99f7 100644 --- a/admin/reports_committees.inc.php +++ b/admin/reports_committees.inc.php @@ -95,6 +95,12 @@ $report_committees_fields = array( 'width' => 2, 'table' => 'users.organization'), + 'title' => array( + 'name' => 'Committee Member -- Title on Committee', + 'header' => 'Title', + 'width' => 2, + 'table' => 'committees_link.title'), + 'firstaid' => array( 'name' => 'Committee Member -- First Aid Training', 'header' => 'F.Aid', @@ -135,9 +141,14 @@ $report_committees_fields = array( } */ $q = " FROM - users + users, + committees, + committees_link WHERE users.types LIKE '%committee%' + AND committees_link.committees_id=committees.id + AND committees_link.users_uid=users.uid + AND users.year=$year "; return $q;