diff --git a/remote.php b/remote.php index 0f60b5a..6b6fe81 100644 --- a/remote.php +++ b/remote.php @@ -79,8 +79,8 @@ function handle_getawards(&$u, $fair, &$data, &$response) } /* Load the awards this fair is allowed to download */ - $where = "id='".join("' OR id='", $ids)."'"; - $q = mysql_query("SELECT * FROM award_awards WHERE $where" ); + $where = "(id='".join("' OR id='", $ids)."')"; + $q = mysql_query("SELECT * FROM award_awards WHERE $where AND year='$year'" ); while($a = mysql_fetch_assoc($q)) { $award = array();