title: cakephp having condition in find
body: <p>can someone help me, and show me how to insert BEETWEN in having clausule in cakephp</p>
  
  <p>exampleo of my codE:</p>
  
  <pre><code>$zaduzenja = $this-&gt;Zaduzenja-&gt;find('all',array(
                  'conditions' =&gt; array(
                          'Zaduzenja.placeno' =&gt; 0 ),
                  'fields' =&gt; array('Zaduzenja.obveznici_id', 'SUM(Zaduzenja.zaduzenje) as dug'),
                  'group' =&gt; 'Zaduzenja.obveznici_id HAVING array(dug BETWEEN ? AND ? =&gt; array('.$iznosOd,$iznosDo)'
  
          ));
  </code></pre>
  
  <p>but this not working, i only want Calculated column "dug" to check if Dug >=$temp 1 AND Dug &lt;=$temp2, but this is posible only in group with having clausule</p>