supporter doesn't need to be supporter in the first place, we'll have
to investigate the junction relation instead of the primary project
field only.
# pg_exec ($dbh, "SET DateStyle = 'ISO'") or die("Datenbank-Abfrage!");
- $query = "SELECT name,oid,email FROM person WHERE project = 'Supporter' ORDER BY name";
+ $query = "SELECT name,person.oid,email FROM person,junction "
+ ."WHERE person = name AND junction.project = 'Supporter' ORDER BY name";
$sth = pg_exec ($dbh, $query) or die("Datenbank-Abfrage!");
if (pg_NumRows ($sth) > 0) {