diff --git a/eZ/Publish/Core/Persistence/Legacy/Filter/SortClauseQueryBuilder/Bookmark/IdSortClauseQueryBuilder.php b/eZ/Publish/Core/Persistence/Legacy/Filter/SortClauseQueryBuilder/Bookmark/IdSortClauseQueryBuilder.php index 06b20d2f63..ac2c8ea4e0 100644 --- a/eZ/Publish/Core/Persistence/Legacy/Filter/SortClauseQueryBuilder/Bookmark/IdSortClauseQueryBuilder.php +++ b/eZ/Publish/Core/Persistence/Legacy/Filter/SortClauseQueryBuilder/Bookmark/IdSortClauseQueryBuilder.php @@ -25,6 +25,7 @@ public function buildQuery( FilteringSortClause $sortClause ): void { /** @var \eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause */ + $queryBuilder->addSelect('bookmark.id'); $queryBuilder->addOrderBy('bookmark.id', $sortClause->direction); } }