? 308585_comment_notify_pgsql_compliance.patch Index: comment_notify.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/comment_notify/comment_notify.module,v retrieving revision 1.21 diff -u -p -r1.21 comment_notify.module --- comment_notify.module 12 Sep 2008 21:46:09 -0000 1.21 +++ comment_notify.module 15 Sep 2008 13:45:51 -0000 @@ -296,9 +296,9 @@ function _comment_notify_mailalert($comm $comment_mail = $comment->mail; } - $result = db_query("SELECT DISTINCT c.cid, u.init, c.uid, c.name, c.nid, c.mail cmail, u.mail umail, u.init uinit, c.uid, c.name, cn.notify_hash mymd5 + $result = db_query("SELECT DISTINCT c.cid, u.init, c.uid, c.name, c.nid, c.mail AS cmail, u.mail AS umail, u.init uinit, c.uid, c.name, cn.notify_hash mymd5 FROM {comments} c INNER JOIN {comment_notify} cn on c.cid = cn.cid LEFT OUTER JOIN {users} u ON c.uid = u.uid - WHERE nid = %d AND cn.notify = 1 AND c.status = 0 AND (u.status = 1 or u.status = '')", $nid + WHERE nid = %d AND cn.notify = 1 AND c.status = 0 AND (u.status = 1 OR u.status = '' OR u.status IS NULL)", $nid ); // TODO? the original big query had stuff making sure the mail was populated and contained .+@.+ Perhaps check for that here and set notify = 0 if that is the case for this cid