fixing guild reject error (issue #2886)-correcting syntax

Changed syntax in database call to actually update the database when a guild invitation is rejected, fixes issue 2886