where EXISTS (select 1 from users where users.user_id = acct.user_id or (acct_id is null and user_id = 0)