title: cakephp is passing action name as query, when the 'controllerA/action' is called from controllerB/actionB
body: <p>I have problem in these two controllers 'Users' and 'Customers' and their models have relation of many to one.</p>
  
  <p>in both controllers I have one function called assignToAccountManager()
  when I am calling customers/assignToAccountManager from users/assignToAccountManager i am getting this error:</p>
  
  <p><strong>Warning (512):</strong> SQL Error: 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 'assignToAccountManager' at line 1 [CORE\cake\libs\model\datasources\dbo_source.php, line 525]</p>
  
  <p>Query: assignToAccountManager </p>
  
  <p>this is my users/assignToAccountManager() function:</p>
  
  <pre><code>public function assignToAccountManager($userId=""){
  
          $userId = $userId;
          $userId = 1235;
          $this-&gt;User-&gt;id = $userId;
          $customerId = $this-&gt;User-&gt;field('customer_id');
          $this-&gt;User-&gt;Customer-&gt;id = $customerId;
          if($this-&gt;User-&gt;Customer-&gt;field('account_manager_id')){
              $this-&gt;User-&gt;Customer-&gt;assignToAccountManager($customerId);                                             
          }
          else{
  
          }
      }
  </code></pre>
  
  <p>and this is my assignToaccountManger function from customers controller</p>
  
  <pre><code>public function assignToAccountManager($customerId){
          if($customerId = ''){
              return false;
          }
          else{
              $this-&gt;loadModel('AccountManager');
              $accountManagerId = array_rand($this-&gt;AccountManager-&gt;find('list', array(
                      'fields'=&gt;array('id')
                  )),1);
  
              $this-&gt;Customer-&gt;id = $customerId;
              $this-&gt;Customer-&gt;saveField('account_manager_id', (string)$accountManagerId);
  
          }
      }
  </code></pre>