title: MySQL Query - Not Between Two Dates
body: <p>I am trying to run a query that selects all the users that have not logged in for two months (<code>last_access</code>), the <code>insert_date</code> is not within two months of today and the <code>status</code> is not 2.</p>
  <p>The <code>last_access</code> and <code>insert_date</code> are both <code>datetime</code>.</p>
  <p>This is the code I have;</p>
  <pre><code>SELECT * 
  FROM `wp_SDzEBA_pc_users`
  WHERE `last_access` NOT BETWEEN NOW() - INTERVAL 2 MONTH AND NOW()
  AND `insert_date` NOT BETWEEN NOW() - INTERVAL 2 MONTH AND NOW()
  AND `status` &lt;&gt; 2
  </code></pre>
  <p>But it seems to still select users that have logged in within a two month period.</p>
  <p>What am I doing wrong?</p>