title: Table [tablename] is not locked
body: <p>I am writing a MySQL query that locks a table:</p>
  
  <pre><code>"LOCK TABLE table_1 WRITE"
  </code></pre>
  
  <p>After that i am executing some functions, and in one of those functions, I am executing another query, on another table that I haven't locked:</p>
  
  <pre><code>"SELECT * FROM completely_different_table_2"
  </code></pre>
  
  <p>Then i get the following error message as result:</p>
  
  <pre><code>Table 'completely_different_table_2' was not locked with LOCKED TABLES 
  </code></pre>
  
  <p>Indeed, MySql is right to tell me that the table is not locked. But why does it throws an error? Anyone any ideas how I could solve this?</p>
  
  <p>Thanks in advance.</p>