diff --git a/product/CMFActivity/skins/activity/SQLDict_validateMessageList.zsql b/product/CMFActivity/skins/activity/SQLDict_validateMessageList.zsql
index be54d5c3c26d940c8902529254a811ebfbc81a23..4c79317be907e5229b423e02cfcd063b87d131d3 100755
--- a/product/CMFActivity/skins/activity/SQLDict_validateMessageList.zsql
+++ b/product/CMFActivity/skins/activity/SQLDict_validateMessageList.zsql
@@ -25,4 +25,10 @@ WHERE
     )
 </dtml-if>
 <dtml-if message_uid>AND uid = <dtml-sqlvar message_uid type="int"> </dtml-if>
-<dtml-if path>AND path = <dtml-sqlvar path type="string"></dtml-if>
+<dtml-if path>
+    AND (
+<dtml-in path>
+        path = <dtml-sqlvar sequence-item type="string"><dtml-if sequence-end><dtml-else> OR </dtml-if>
+</dtml-in>
+    )
+</dtml-if>
diff --git a/product/CMFActivity/skins/activity/SQLQueue_validateMessageList.zsql b/product/CMFActivity/skins/activity/SQLQueue_validateMessageList.zsql
index 37292bcd340819171787b3b013b9aca4a7605a96..13c2207e4e67713d446632b87d17e7784368b201 100755
--- a/product/CMFActivity/skins/activity/SQLQueue_validateMessageList.zsql
+++ b/product/CMFActivity/skins/activity/SQLQueue_validateMessageList.zsql
@@ -25,4 +25,10 @@ WHERE
     )
 </dtml-if>
 <dtml-if message_uid>AND uid = <dtml-sqlvar message_uid type="int"> </dtml-if>
-<dtml-if path>AND path = <dtml-sqlvar path type="string"></dtml-if>
+<dtml-if path>
+    AND (
+<dtml-in path>
+        path = <dtml-sqlvar sequence-item type="string"><dtml-if sequence-end><dtml-else> OR </dtml-if>
+</dtml-in>
+    )
+</dtml-if>