diff --git a/WEB/Controller/PartieGateway.php b/WEB/Controller/PartieGateway.php index ccb67a5a..2d9b1d6e 100644 --- a/WEB/Controller/PartieGateway.php +++ b/WEB/Controller/PartieGateway.php @@ -305,7 +305,7 @@ class PartieGateway } public function findEnigmeIdInPartieWithIndex($idPartie, $index) : int{ - $query = "SELECT * FROM Contenir WHERE partie = :idPartie AND index = :index"; + $query = "SELECT * FROM Contenir WHERE partie = :idPartie AND indexEnigme = :index"; $this->con->executeQuery($query, array( "idPartie" => array($idPartie, SQLITE3_INTEGER), "index" => array($index, SQLITE3_INTEGER)