Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I can reproduce this problem. It seems to be independent of the "view type" and instead is related taxonomy terms associated to returned nodes.
Testing has revealed that the node is repeated according to the number of terms (cummulative over multiple vocabularies) associated to the returned node.
Note that in my case, the view in question only looks for "published" + content type "is one of" + is "distinct". i.e. it doesn't even refer to taxonomy.... and no, adding taxo filters didn't seem to change anything.
In case it makes a difference.. note that I am also using i18n.
It's just node type + published + distinct, ordered by time published
the query is
SELECT DISTINCT(node.nid), comments.timestamp AS comments_timestamp_timestamp, node.title AS node_title, node.changed AS node_changed FROM node node LEFT JOIN comments comments ON node.nid = comments.nid WHERE (node.type IN ('rec')) AND (node.status = '1') GROUP BY node.nid, comments_timestamp_timestamp ORDER BY comments_timestamp_timestamp DESC LIMIT 0, 5
I am filtering, in this order:
Node, published, yes
Taxononomy for vocab X, 'is one of', about 5 selected terms.
Node: distinct
Arguments: summary sorted ascending.
Sort: Sticky and creation date.
If I remove 'Node:distinct' on the first page of the view, I see the list of terms with number of posts in parenthesis, if I click on the term, it shows the teasers of the nodes. If I keep 'Node: distinct', the list of terms on the first page repeats various terms with (1) following the term, and does not show other terms (which I know have nodes). However, when I click the term, there is more than one listing under the term.
I have marked my http://drupal.org/node/294748 as a duplicate of this one, but now I'm no longer sure. Distinct is not being enforced, but I am not filtering by taxonomy?
I am having the same issue. Have an event content type with two dates and the event shows up twice. I want the event to show up once in the list. Query settings distinct is not dropping the second listing.
Comments
Comment #1
fagoI've just tested the filter again and it's working for me. With which filters are you combining DISTINCT? Could you export your view?
Comment #2
merlinofchaos commentedThe same is true for me; I can't reproduce this without significantly more information.
Comment #3
omar commentedI can reproduce this problem. It seems to be independent of the "view type" and instead is related taxonomy terms associated to returned nodes.
Testing has revealed that the node is repeated according to the number of terms (cummulative over multiple vocabularies) associated to the returned node.
Note that in my case, the view in question only looks for "published" + content type "is one of" + is "distinct". i.e. it doesn't even refer to taxonomy.... and no, adding taxo filters didn't seem to change anything.
In case it makes a difference.. note that I am also using i18n.
Comment #4
Etanol commentedI can confirm it as well with 1.6 +
It's just node type + published + distinct, ordered by time published
the query is
the view is:
there are multiple reports of this error - will it be ever fixed?
Comment #5
mariagwyn commentedIt is possible I am having the same problem.
I am filtering, in this order:
Node, published, yes
Taxononomy for vocab X, 'is one of', about 5 selected terms.
Node: distinct
Arguments: summary sorted ascending.
Sort: Sticky and creation date.
If I remove 'Node:distinct' on the first page of the view, I see the list of terms with number of posts in parenthesis, if I click on the term, it shows the teasers of the nodes. If I keep 'Node: distinct', the list of terms on the first page repeats various terms with (1) following the term, and does not show other terms (which I know have nodes). However, when I click the term, there is more than one listing under the term.
Maria
Comment #6
catchhttp://drupal.org/node/83490
Comment #7
kulfi commentedI have marked my http://drupal.org/node/294748 as a duplicate of this one, but now I'm no longer sure. Distinct is not being enforced, but I am not filtering by taxonomy?
Comment #8
ashishkuc commentedIn Drupal 7 Add Distinct option from Views->advanced -> Query Settings
Comment #9
gnupdg commentedI have the same problem, i add "distinct" from "views -> advanced -> query settings" but it still doesn't work
Comment #10
rfulcher commentedI am having the same issue. Have an event content type with two dates and the event shows up twice. I want the event to show up once in the list. Query settings distinct is not dropping the second listing.