--- taxonomy_context.module	2004/12/17 20:01:16	1.1
+++ taxonomy_context.module	2005/01/01 00:20:42
@@ -1,5 +1,6 @@
 <?php
-// $Id: taxonomy_context.module,v 1.1 2004/12/17 20:01:16 root Exp $
+// $Id: taxonomy_context.module,v 1.3 2005/01/01 00:20:35 root Exp root $
+// vim: syntax=php
 
 /**
  * Implementation of hook_menu()
@@ -440,7 +441,7 @@
     $context = taxonomy_context_get_context();
   }
   $output = "";
-  $sql = "SELECT DISTINCT(n.nid), n.title, n.teaser " .
+  $sql = "SELECT DISTINCT(n.nid), n.title, n.teaser, n.sticky, n.created " .
     "FROM {node} n " .
     "LEFT JOIN {term_node} r ON n.nid = r.nid " .
     "LEFT JOIN {users} u ON n.uid = u.uid " .
@@ -449,7 +450,7 @@
     "AND n.status = '1' ".
     "AND " .  node_access_where_sql() .
     (variable_get("taxonomy_context_use_promote", 1) ? " AND n.promote = '1' " : "") .
-    " ORDER BY sticky DESC, n.created DESC";
+    " ORDER BY n.sticky DESC, n.created DESC";
   $result = db_query($sql, $tid);
   while ($node = db_fetch_object($result)) {
     $params = array("title" => strip_tags($node->teaser));
