Index: civinode_groups.inc
===================================================================
--- civinode_groups.inc	(revision 82)
+++ civinode_groups.inc	(working copy)
@@ -44,7 +44,7 @@
                     civicrm_subscription_history.method as method';
         }
 
-        $where  = ' WHERE civicrm_contact.id = ' 
+        $where  = ' WHERE civicrm_group_contact.contact_id = ' 
                 . CRM_Utils_Type::escape($contactId, 'Integer') 
                 ." AND civicrm_group.is_active = '1' ";
         
