we need to use map that return a array of IDs instead to pass a ActiveRecord select result