"UPDATE " . TABLE_PREFIX . "subscribethread as subscribethread LEFT JOIN " . TABLE_PREFIX . "user as user ON(subscribethread.userid=user.userid) SET emailupdate = 0 WHERE (emailupdate > 0) AND email LIKE '%domainxyz.com' "