diff --git a/src/Controller/ApiKeys.php b/src/Controller/ApiKeys.php index e1484ce..c22b1fa 100644 --- a/src/Controller/ApiKeys.php +++ b/src/Controller/ApiKeys.php @@ -26,7 +26,8 @@ class ApiKeys FROM " . DatabaseConnection::TABLE_USER; try { - $statement = $this->databaseConnection->getConnection()->query(statement: $sql); + $statement = $this->databaseConnection->getConnection()->prepare(query: $sql); + $statement->execute(); return $statement->fetchAll(mode: PDO::FETCH_ASSOC); } catch (PDOException $e) { exit($e->getMessage());