diff --git a/foundation.gnome.org/vote/include/election-sql.php b/foundation.gnome.org/vote/include/election-sql.php index dd7ba79..c5f3879 100644 --- a/foundation.gnome.org/vote/include/election-sql.php +++ b/foundation.gnome.org/vote/include/election-sql.php @@ -156,7 +156,7 @@ function elec_choices_get ($handle, $election_id) { $escaped_election_id = mysql_real_escape_string ($election_id, $handle); - $query = "SELECT * FROM " . $choices_table; + $query = "SELECT choice, id FROM " . $choices_table; $query .= " WHERE election_id = '".$escaped_election_id."'"; $query .= " ORDER BY id";