con = L2DatabaseFactory.getInstance().getConnection();
statement = con.prepareStatement("SELECT * FROM items WHERE owner_id=? AND (loc=? OR loc=?) ORDER BY object_id DESC");
statement.setInt(1, OWNER);
statement.setString(2, getBaseLocation().name());
statement.setString(3, getEquipLocation().name());
rset = statement.executeQuery();
L2ItemInstance item, newItem;
while(rset.next())
{
if((item = L2ItemInstance.restoreFromDb(rset, con, true)) == null)
{