small SQL cleanup
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user