Fix direct sql query for directories to the archive
Duplicated entries are now filtered by a SELECT DISTINCT
clause.
Migrated from D6991 (view on Phabricator)
Duplicated entries are now filtered by a SELECT DISTINCT
clause.
Migrated from D6991 (view on Phabricator)