prepare(' SELECT * FROM `col_games` WHERE `game_id` = :game '); $getGame->bindValue('game', $gameId); $getGame->execute(); $game = $getGame->fetch(PDO::FETCH_OBJ); if(empty($game)) { http_response_code(404); die('No such game.'); } $getOwnership = $pdo->prepare(' SELECT * FROM `col_games_ownership` WHERE `game_id` = :game '); $getOwnership->bindValue('game', $gameId); $getOwnership->execute(); $ownership = $getOwnership->fetchAll(PDO::FETCH_OBJ); ?>