title: cakePHP WHERE IN CLAUSE : Array to String convertion
body: <p>Hello I want to get all the data from a table that are in the range of those arrays below :
  //A data sent from AJAX to PHP</p>
  
  <pre><code>$authors = $_POST['authors'];
  $articles= $_POST['articles'];
  </code></pre>
  
  <p>The following cakePHP query is giving me the following errors :</p>
  
  <p>Query:</p>
  
  <pre><code>$this-&gt;Mymodel-&gt;find('all', array('conditions' =&gt; array('Mymodel.name' =&gt; array($authors ,$articles)),'order'=&gt;'Mymodel.id DESC'));
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Notice (8): Array to string conversion [CORE/Cake/Model/Datasource/DboSource.php, line 2591]
  Database Error
  
  Error: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "," LINE 1: ...Mymodel" WHERE "Mymodel"."name" IN (Array, Array) ... ^
  </code></pre>
  
  <p>What am I doing wrong? I know that if I had an arry as <code>$authors = array('sss','rrr');</code> it will work so why it does not in my case?
  Thank you in advance.</p>