From 84ad60dea1a9ff508e95a5fe0f77c69538d1c315 Mon Sep 17 00:00:00 2001 From: Muad Sakah Date: Sun, 2 Feb 2025 06:22:10 +0000 Subject: [PATCH] committees databse complete --- committees.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/committees.php b/committees.php index 8a182824..fea0d251 100644 --- a/committees.php +++ b/committees.php @@ -36,7 +36,7 @@ while ($r = $q->fetch(PDO::FETCH_OBJ)) { /* Select all the u$q=("SELECT * FROM committees ORDER BY ord,name");sers in the committee, using MAX(year) for the most recent year */ $q2 = $pdo->prepare("SELECT committees_link.*,users.uid,MAX(users.year),users.lastname FROM committees_link LEFT JOIN users ON users.uid = committees_link.users_uid - WHERE committees_id='{$r->id}' + WHERE committees_id=? GROUP BY users.uid ORDER BY ord,users.lastname "); $q2->execute(); // if there's nobody in this committee, then just skip it and go on to the next one.