title: CakePHP syntax for find conditions
body: <p>I have a table called <code>Users</code> and the following find works fine:</p>
  
  <pre><code>$users = $this-&gt;User-&gt;find('list', array('conditions'=&gt;array('User.id'=&gt;1)));
  </code></pre>
  
  <p>However, if I try to get a list of users with <code>"User.id != 1" or "User.id &gt;= 5",</code>  the find does not return data.</p>
  
  <p>The syntax I have used is </p>
  
  <pre><code>$users = $this-&gt;User-&gt;find('list', array('conditions'=&gt;array('User.id'=&gt;'&lt;&gt; 1')));
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>$users = $this-&gt;User-&gt;find('list', array('conditions'=&gt;array('User.id'=&gt;'&gt;= 1')));
  </code></pre>
  
  <p>The debug query generated by Cake for the <code>User.id =&gt; '&lt;&gt; 1')</code> case is </p>
  
  <pre><code>SELECT `User`.`id`, `User`.`first_name` FROM `mesh2`.`users` AS `User` WHERE `User`.`id` = '&lt;&gt;1',
  </code></pre>
  
  <p>which seems to be incorrect.</p>
  
  <p>I have used the examples from Alvin's <a href="http://alvinalexander.com/php/cakephp-find-conditions-cakephp-find-all-list-count" rel="nofollow">site</a>.  Any ideas?</p>