title: find by column name cakePHP
body: <p>Hello I have been trying to understand how to get data from model by the name of field. I am using cakePHP, and I need to retreive a column's data from a table. The syntax is</p>
  
  <pre><code>&gt; "select name from permissions"
  </code></pre>
  
  <p>So I tried to find out on book.cakephp.org, so I got the field function, but that only gives me the first value, while I have more than one values for this.</p>
  
  <p>I tried do a </p>
  
  <p><code>$this-&gt;Model-&gt;find(array('fields'=&gt;'Model.fieldName'));</code></p>
  
  <p>but I understood that the syntax itself is flawed.</p>
  
  <p>Can somebody let me know what is the method to query based on column name.</p>