element_entities deduplicates entity names
https://redmine.teklia.com/issues/3825
The element_entities
function uses a GROUP BY entity.name
. When there is more than one TranscriptionEntity on the same entity, or more than one entity with the same name, only the first entity is returned as the names are deduplicated.