error cuando usa multihilo y mysqldb

error de error cuando el programa multiproceso accede a los datos.

Exception in thread Thread-2:

ProgrammingError: (2014, "Commands out of sync; you can't run this command now")

Exception in thread Thread-3:

ProgrammingError: execute() first