Looks like you haven't linked things properly? the HOTEL_NAME part, is that what you've changed in this post or is that what it's actually coming up with?
You may be able to fix that yourself? Somewhere in the code try adding that you set the old owners rights to the room as 0 or something as the room might be transferred but the rights are still on that users account.