Index: notifications.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/notifications/notifications.module,v
retrieving revision 1.6.2.12
diff -b -u -p -r1.6.2.12 notifications.module
--- notifications.module	28 Apr 2008 16:01:04 -0000	1.6.2.12
+++ notifications.module	2 May 2008 15:30:40 -0000
@@ -534,7 +534,7 @@ function notifications_get_subscriptions
   }  
   foreach ($params as $field => $value) {
     $name = strstr($field, '.') ? $field : 's.'. $field;
-    $where[] = is_numeric($value) ? $name .' = %d' : "$name = '%s'";
+    $where[] = (is_numeric($value) && strstr($field, 's.')) ? $name .' = %d' : "$name = '%s'";
   }
   
   $sql = 'SELECT * FROM {notifications} s '. implode(' ', $join) .
