Fix broken queries in Releases.php