SELECT user_id FROM xcalls.opgx_user_status WHERE company != $1 AND call_id IS NULL AND status_key IN ($2, $3) ORDER BY update_ts ASC LIMIT 1;