Update plugins/poll/classes/PollAnswerAttachment.php

change query to new execute method