title: Not locking tables but am getting error "General error: 1100 Table 'entities' was not locked with LOCK TABLES"
body: <p>I am trying to run a simple <code>INSERT</code> query, but am receiving an error stating:</p>
  
  <pre><code>General error: 1100 Table 'entities' was not locked with LOCK TABLES
  </code></pre>
  
  <p>I have not used an implicit <code>LOCK TABLES</code> before the query.</p>
  
  <p>Doing a <code>SHOW FULL PROCESSLIST</code> just previous to the query yeilds:</p>
  
  <pre><code>Id      User    Host    db      Command Time    State   Info
  646     my_user my-win-8:4018 db_name Query   0               SHOW FULL PROCESSLIST
  </code></pre>
  
  <p>The query I am running is:</p>
  
  <pre><code>INSERT INTO entities (type, user_id, created, creator, updated, updater)
  VALUE ('some-type', NULL, '2013-07-02 01:30:18', '3', '2014-08-28 23:45:44', '2');
  </code></pre>