forked from science-ation/science-ation
committees databse complete
This commit is contained in:
parent
afd0fc0067
commit
84ad60dea1
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user