--- subdomain_mode_group.inc-bak	2011-02-26 22:20:01.000000000 +0000
+++ subdomain_mode_group.inc	2011-02-26 22:28:33.000000000 +0000
@@ -35,10 +35,9 @@
       $sid = db_query("
         SELECT og.etid as nid
         FROM {field_data_group_audience} a
-          INNER JOIN {field_config_entity_type} e ON a.etid = e.etid
           INNER JOIN {node} n ON a.entity_id = n.nid
           INNER JOIN {og} og on a.group_audience_gid = og.gid
-        WHERE e.type = 'node' AND n.nid = :nid AND n.type NOT IN (:types)",
+        WHERE n.nid = :nid AND n.type NOT IN (:types)",
         array(':nid' => $nid, ':types' => _subdomain_filtered_content_types()))
       ->fetchField();
       $subdomains[$nid] = subdomain_get_subdomain($sid);
