Index: og_notifications.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/og/modules/og_notifications/Attic/og_notifications.module,v
retrieving revision 1.24.4.6
diff -u -r1.24.4.6 og_notifications.module
--- og_notifications.module	18 Apr 2009 05:49:13 -0000	1.24.4.6
+++ og_notifications.module	20 Apr 2009 18:12:37 -0000
@@ -363,12 +363,8 @@
     case 'query':
       if ($arg0 == 'event' && $arg1 == 'node' && ($node = $arg2->node) || $arg0 == 'user' && $arg1 == 'node' && ($node = $arg2)) {
         $query = array();
-        if (isset($node->og_groups)) {
-          $query[] = array(
-            'join' => "LEFT JOIN {og_ancestry} oga ON oga.nid = %d",
-            'join args' => array($node->nid),
-            'fields sql' => "f.field = 'group' AND f.intval = oga.group_nid"
-          );
+        if (!empty($node->og_groups)) {
+          $query[]['fields']['group'] = $node->og_groups;
         }
         if ($arg0 == 'user' && og_is_group_type($node->type)) {
           $query[]['fields']['group'] = $node->nid;
