title: updateAll query not working in cakephp
body: <p>I try to update the table posts using the updateAll command. But i got an error. I have wot tables namely users and posts. My controller is,</p>
  
  <pre><code>&lt;?php
  App::uses('AppModel', 'Model');
  class Post extends AppModel {
  public $belongsTo = array(
      'User' =&gt; array(
          'className'    =&gt; 'User',
          'foreignKey'   =&gt; 'user_id',
          'fields'    =&gt; "User.id,User.name,User.uname"
      )
  );
  function updatePost($title,$content,$pid){
      $this-&gt;updateAll(
          array('Post.title' =&gt; $title,'Post.content'=&gt;$content),
          array('Post.id' =&gt; $pid)
      );
  }
  }
  
  ?&gt;
  </code></pre>
  
  <p>The error message is,
  "Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Post 2, <code>Post</code>.<code>content</code> = <p>Models are the classes that sit as the business la' at line 1"</p>
  
  <p>"SQL Query: UPDATE <code>blog</code>.<code>posts</code> AS <code>Post</code> LEFT JOIN <code>blog</code>.<code>users</code> AS <code>User</code> ON (<code>Post</code>.<code>user_id</code> = <code>User</code>.<code>id</code>) SET <code>Post</code>.<code>title</code> = test_title, <code>Post</code>.<code>content</code> = sample body WHERE <code>Post</code>.<code>id</code> = 2 ";
  How to correct it ?</p>