From 7c9ceb79bfe3a35fab2a0a17dcb352850bc179b9 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 18 Feb 2019 12:54:43 -0800 Subject: [PATCH] For the max() method when using $where --- e107_handlers/e_db_pdo_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/e_db_pdo_class.php b/e107_handlers/e_db_pdo_class.php index be047f0d9..8d2d5d7fb 100644 --- a/e107_handlers/e_db_pdo_class.php +++ b/e107_handlers/e_db_pdo_class.php @@ -1679,7 +1679,7 @@ class e_db_pdo implements e_db if(!empty($where)) { - $qry .= "WHERE ".$where; + $qry .= " WHERE ".$where; } return $this->retrieve($qry);