committees databse complete

This commit is contained in:
Muad Sakah 2025-02-02 06:22:10 +00:00
parent afd0fc0067
commit 84ad60dea1

View File

@ -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.