From bd55f70a0c8a3003273c1481dd3e2a8554eaa931 Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Sat, 1 Apr 2023 19:37:23 +0200 Subject: [PATCH] Correct GatewayResponse.php, error in column name in database --- Source/API/script/Gateway/GatewayResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/API/script/Gateway/GatewayResponse.php b/Source/API/script/Gateway/GatewayResponse.php index 583a41c..287284c 100644 --- a/Source/API/script/Gateway/GatewayResponse.php +++ b/Source/API/script/Gateway/GatewayResponse.php @@ -68,7 +68,7 @@ class GatewayResponse */ public function getResponsesIdByIdListCandidate(int $listResponsesOfCandidateId): array { - $query = "SELECT r.id FROM `response` r, `submit` s WHERE s.responseCandidate = :id AND r.id = s.response"; + $query = "SELECT r.id FROM `response` r, `submit` s WHERE s.responsesCandidate = :id AND r.id = s.response"; $this->connection->executeQuery($query, array( ':id' => array($listResponsesOfCandidateId, PDO::PARAM_INT) ));