Index: taxonomy_delegate.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_delegate/taxonomy_delegate.module,v
retrieving revision 1.1.4.10
diff -u -p -r1.1.4.10 taxonomy_delegate.module
--- taxonomy_delegate.module	9 May 2008 22:40:46 -0000	1.1.4.10
+++ taxonomy_delegate.module	7 Jul 2008 22:46:45 -0000
@@ -371,7 +371,7 @@ function taxonomy_delegate_overview_term
   if ($vocabulary->tags) {
     $output .= '<p>'. t('This is a freetagging vocabulary.') .'</p>';
     // We are not calling taxonomy_get_tree because that might fail with a lot of tags in a freetagging vocabulary.
-    $results = db_rewrite_sql('SELECT t.*, h.parent FROM {term_data} t INNER JOIN  {term_hierarchy} h ON t.tid = h.tid WHERE t.vid = %d ORDER BY weight, name', 't', 'tid', $vid);
+    $results = db_query(db_rewrite_sql('SELECT t.*, h.parent FROM {term_data} t INNER JOIN  {term_hierarchy} h ON t.tid = h.tid WHERE t.vid = %d ORDER BY weight, name', 't', 'tid'), $vid);
 
     while ($term = db_fetch_object($results)) {
       $rows[] = array(
