--- old/taxonomy_theme_taxonomy.inc	2007-05-08 19:18:20.000000000 +0200
+++ taxonomy_theme_taxonomy.inc	2009-03-02 12:15:55.000000000 +0100
@@ -49,7 +49,7 @@
   $selector_vid = variable_get('taxonomy_theme_selector', '');
   if ((arg(0) == 'node') && is_numeric(arg(1))) {
     $nid = arg(1);
-    $node_type = db_fetch_object(db_query('SELECT type FROM node WHERE nid = %d', $nid));
+    $node_type = db_fetch_object(db_query('SELECT type FROM {node} WHERE nid = %d', $nid));
     $terms = taxonomy_node_get_terms_by_vocabulary($nid, $selector_vid);
     if ($terms) {
       $term = current($terms);
