diff --git a/src/strategy/actions/GuildCreateActions.cpp b/src/strategy/actions/GuildCreateActions.cpp index 184f72d1..6bf04ba2 100644 --- a/src/strategy/actions/GuildCreateActions.cpp +++ b/src/strategy/actions/GuildCreateActions.cpp @@ -131,7 +131,7 @@ bool PetitionOfferAction::Execute(Event event) data << petitions.front()->GetGUID(); data << guid; - QueryResult result = CharacterDatabase.Query("SELECT playerguid FROM petition_sign WHERE player_account = {} AND petitionguid = {}'", + QueryResult result = CharacterDatabase.Query("SELECT playerguid FROM petition_sign WHERE player_account = {} AND petitionguid = {}", player->GetSession()->GetAccountId(), petitions.front()->GetGUID().GetCounter()); if (result) {