title: Mysql not working correctly with and
body: <p>i have the SQL statement:</p>
  
  <pre><code>SELECT `id`, `un`, `last_active` 
  FROM `users` 
  WHERE (`company_id` = :company_id 
         AND `un` LIKE :un 
         AND `id` != :id 
         AND `id` != :id) 
  ORDER BY id DESC 
  LIMIT 1
  </code></pre>
  
  <p>But this doesn't work correctly because i suspect that the repetitive component <code>id</code> is not being tested correctly.</p>
  
  <p>So how can i have a sql statement with <code>id!=1 AND id!=7</code></p>