small SQL cleanup

This commit is contained in:
Gilles Crettenand
2015-05-28 09:22:27 +02:00
parent 90a1d8a6b6
commit 4c85a079ed

View File

@@ -93,10 +93,10 @@ class User extends DbMapping
NoticeID, NoticeID,
CheckOutDate, CheckOutDate,
ItemNr ItemNr
FROM %s AS c, Items FROM %s AS c
INNER JOIN Items AS i ON i.ItemId = c.ItemId
WHERE WHERE
c.UseraccountId = %s c.UseraccountId = %s
AND Items.ItemId=c.ItemId
ORDER BY %s", $table, $this->id, $sort); ORDER BY %s", $table, $this->id, $sort);
$result = Connection::execute($sql); $result = Connection::execute($sql);