diff --git a/lib/Db/ShareMapper.php b/lib/Db/ShareMapper.php index 83ac90e9e..ea43e862e 100644 --- a/lib/Db/ShareMapper.php +++ b/lib/Db/ShareMapper.php @@ -104,7 +104,7 @@ public function findByPollUnreminded(int $pollId, bool $getDeleted = false): arr $qb->select('*') ->from($this->getTableName()) - ->groupBy(self::TABLE . '.id') + ->groupBy('id') ->where($qb->expr()->eq('poll_id', $qb->createNamedParameter($pollId, IQueryBuilder::PARAM_INT))) ->andWhere($qb->expr()->eq('reminder_sent', $qb->createNamedParameter(0, IQueryBuilder::PARAM_INT)));