From d4282157a9d1ae683cba11ccfdf22a022ef0fa7a Mon Sep 17 00:00:00 2001 From: mohammad walid anzawi Date: Sat, 30 Apr 2016 13:46:35 +0300 Subject: [PATCH] Update Database.php --- Database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Database.php b/Database.php index f343b9e..394293e 100644 --- a/Database.php +++ b/Database.php @@ -409,7 +409,7 @@ public function in($field, $values = []) { if(count($values)) { - $this->_query .= " $field IN (" . implode(",", $values) . ")"; + $this->_query .= " $this->_where $field IN (" . implode(",", $values) . ")"; $this->_where = "AND"; } } @@ -424,7 +424,7 @@ public function notIn($field, $values = []) { if(count($values)) { - $this->_query .= " $field NOT IN (" . implode(",", $values) . ")"; + $this->_query .= " $this->_where $field NOT IN (" . implode(",", $values) . ")"; $this->_where = "AND"; } }