Index: workflow_ng_system.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/workflow_ng/workflow_ng/modules/Attic/workflow_ng_system.inc,v
retrieving revision 1.1.2.7.2.4
diff -u -r1.1.2.7.2.4 workflow_ng_system.inc
--- workflow_ng_system.inc	2 Mar 2008 15:52:22 -0000	1.1.2.7.2.4
+++ workflow_ng_system.inc	1 Apr 2008 17:19:11 -0000
@@ -174,7 +174,7 @@
   else {
     $roles = implode(',', $recipients);
     // Avoid sending emails to members of two or more target role groups.
-    $result = db_query('SELECT DISTINCT u.mail FROM {users} u INNER JOIN {users_roles} r ON u.uid = r.uid WHERE r.rid IN ('. $roles .')');
+     $result = db_query('SELECT DISTINCT u.mail FROM {users} u INNER JOIN {users_roles} r ON u.uid = r.uid WHERE r.rid IN (%d)',$roles);
   }
 
   // Now, actually send the mails.

