Вам понадобится что-то вроде:
SELECT user_id FROM user_options WHERE hide_profile_and_presence = true