aboutsummaryrefslogtreecommitdiff
path: root/jquery_drawer.module
diff options
context:
space:
mode:
Diffstat (limited to 'jquery_drawer.module')
-rw-r--r--jquery_drawer.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/jquery_drawer.module b/jquery_drawer.module
index 5218ae7..a54679d 100644
--- a/jquery_drawer.module
+++ b/jquery_drawer.module
@@ -177,7 +177,7 @@ function jquery_drawer_page($tid = NULL) {
if (isset($filter) && !empty($filter)) {
// Then render all nodes whose terms are children of $term
- $query = 'SELECT n.nid, n.title, term_node.tid FROM {node} n LEFT JOIN
+ $query = 'SELECT DISTINCT n.nid, n.title, term_node.tid FROM {node} n LEFT JOIN
{term_node} ON term_node.nid = n.nid WHERE term_node.tid IN (%s)
AND n.status = "1" ORDER BY term_node.weight_in_tid ASC';