Application->RecallVar('user_id'); $sql = 'UPDATE '.$this->TableName.' SET LastUsedAs'.$address_type.' = 0 WHERE PortalUserId = '.$user_id; $this->Conn->Query($sql); $this->SetDBField('LastUsedAs'.$address_type, 1); return $update_record ? $this->Update() : true; } }