From 4c85a079ed0b112fbcc9bc97a81df0e52ae7c661 Mon Sep 17 00:00:00 2001 From: Gilles Crettenand Date: Thu, 28 May 2015 09:22:27 +0200 Subject: [PATCH] small SQL cleanup --- lib/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/User.php b/lib/User.php index 453e68f..bd228ff 100644 --- a/lib/User.php +++ b/lib/User.php @@ -93,10 +93,10 @@ class User extends DbMapping NoticeID, CheckOutDate, ItemNr - FROM %s AS c, Items + FROM %s AS c + INNER JOIN Items AS i ON i.ItemId = c.ItemId WHERE c.UseraccountId = %s - AND Items.ItemId=c.ItemId ORDER BY %s", $table, $this->id, $sort); $result = Connection::execute($sql);