diff --git a/lib/Db/PublicationMapper.php b/lib/Db/PublicationMapper.php index 7099d677..be3167e6 100644 --- a/lib/Db/PublicationMapper.php +++ b/lib/Db/PublicationMapper.php @@ -60,7 +60,8 @@ private function addFilters(IQueryBuilder $queryBuilder, array $filters): IQuery { foreach($filters as $key => $filter) { if(is_array($filter) === false) { - $queryBuilder->andWhere($queryBuilder->expr()->eq($filter, $queryBuilder->createNamedParameter($filter))); + $queryBuilder->andWhere($queryBuilder->expr()->eq($key, $queryBuilder->createNamedParameter($key))); + $queryBuilder->setParameter($key, $filter); continue; }