diff --git a/profiles/openatrium/modules/contrib/feeds/mappers/content_taxonomy.inc b/profiles/openatrium/modules/contrib/feeds/mappers/content_taxonomy.inc
index 994f78d..0100deb 100755
--- a/profiles/openatrium/modules/contrib/feeds/mappers/content_taxonomy.inc
+++ b/profiles/openatrium/modules/contrib/feeds/mappers/content_taxonomy.inc
@@ -111,7 +111,7 @@ function content_taxonomy_feeds_set_target(&$node, $field_name, $terms) {
  *   An array of matching term objects.
  */
 function content_taxonomy_get_term_by_name_vid($name, $vid) {
-  $db_result = db_query(db_rewrite_sql("SELECT t.tid, t.name FROM {term_data} t WHERE LOWER(t.name) = LOWER('%s') AND vid=%d", 't', 'tid'), trim($name), $vid);
+  $db_result = db_query(db_rewrite_sql("SELECT t.tid, t.name FROM {term_data} t WHERE LOWER(t.name) = LOWER('%s') AND t.vid=%d", 't', 'tid'), trim($name), $vid);
   $result = array();
   while ($term = db_fetch_array($db_result)) {
     $result[] = $term;
