@@ -5,4 +5,4 @@ insert into tmessage
select @tmessageid+ROW_NUMBER()over(order by fphonenumber), siteid, getDate(), 0, $fmessage$, $ftype$, 0, null, tenterprise_userid,$ftitle$,
$objectid$,$objectname$
from tenterprise_users
-where fphonenumber is not null and siteid=$siteid$ and ($tenterprise_userid$=0 or tenterprise_userid = $tenterprise_userid$)
+where fphonenumber is not null and siteid=$siteid$ and tenterprise_userid = $tenterprise_userid$