From 3b9791888c3d3cda293285b42493c22a6ed46c5a Mon Sep 17 00:00:00 2001 From: Joshua Perry <45966243+jpez-development@users.noreply.github.com> Date: Wed, 25 Jan 2023 16:32:54 +0000 Subject: [PATCH] Fixed query syntax --- CSY2028/DatabaseTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CSY2028/DatabaseTable.php b/CSY2028/DatabaseTable.php index 44be488..f50782c 100644 --- a/CSY2028/DatabaseTable.php +++ b/CSY2028/DatabaseTable.php @@ -52,7 +52,7 @@ class DatabaseTable { 'value' => $value, 'value2' => $value2 ]; - $stmt = $this->startDB()->prepare('SELECT * FROM '. $this->table . ' WHERE '. $column . ' = :value AND'. $column2 .' = :value2'); + $stmt = $this->startDB()->prepare('SELECT * FROM '. $this->table . ' WHERE '. $column . ' = :value AND '. $column2 .' = :value2'); $stmt->setFetchMode(\PDO::FETCH_CLASS, $this->entityClass, $this->entityConstructor); $stmt->execute($values); return $stmt->fetchAll();