title: Codeigniter and LOCK tables
body: <p>I have the following Codeigniter (MySQL related) error in my application</p>
  
  <pre><code>Error Number: 1100
  Table 'users' was not locked with LOCK TABLES
  SELECT * FROM (`users`) WHERE `ID` = '1'
  </code></pre>
  
  <p>How can I fix this problem - I tried UNLOCK TABLES but this doesn't fix the problem, any ideas?</p>