I have the following function:
 def Guardar_Modificaciones(self):
    self.usuario.modificar_usuario(self.ID, self.txtNombre.get(), self.txtHA.get(),self.txtIdentificacion.get(),self.txtEdad.get(),self.txtFNacimiento.get(),self.txtEscolaridad.get(),self.txtSS.get(),self.txtEtnia.get(),self.txtContacto.get(),self.txtDireccion.get())
    messagebox.showinfo("Insertar", 'Elemento insertado correctamente')
when I use this function to modify the database values:
ef modificar_usuario(self, ID, Nombre, HA, Identificacion, Edad, FNacimiento, Escolaridad, SS, Etnia, Contacto, Direccion):
    cur = self.cnn.cursor()
    sql='''UPDATE usuarios SET Nombre='{}', HA='{}', Identificacion='{}', Edad='{}', FNacimiento='{}', Escolaridad='{}', SS='{}', Etnia='{}', Contacto='{}',
    Direccion='{}' WHERE ID = {} '''.format(ID, Nombre, HA, Identificacion, Edad, FNacimiento, Escolaridad, SS, Etnia, Contacto, Direccion)
    cur.execute(sql)
    n=cur.rowcount
    self.cnn.commit()
    cur.close()
    return n
it shows me the following error:
raise get_mysql_exception( mysql.connector.errors.ProgrammingError: 1054 (42S22): Unknown column 'CARRERA' in 'where clause'
and it is assumed that CARRERA is a data from the Direccion column, not the ID...
 
    