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);