  def select_official_titles
    Log.add_info(request, params.inspect)

    @user = User.find(params[:user_id])

    unless params[:thetisBoxSelKeeper].nil?
      @group_id = params[:thetisBoxSelKeeper].split(':').last
    end
    SqlHelper.validate_token([@group_id])

    if @group_id.nil?
      @official_titles = OfficialTitle.get_for('0', false, true)
    else
      @official_titles = OfficialTitle.get_for(@group_id, false, true)
    end

    render(:partial => 'select_official_titles', :layout => false)
  end
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.