select contact_id from ab_contact_attrs where attr_id = :attr_id