error when use multithreading and mysqldb
<p>getting error when multithreader program access data .</p>

<pre><code>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
</code></pre>
