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

    return unless request.post?

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

    @user.update_attribute(:item_id, nil)

    Item.find(item_id).destroy
    @item = nil

    render(:partial => 'ajax_profile_sheet', :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.