title: MySQL logical operators
body: <p>Given the query <code>'SELECT foo FROM bar WHERE a = x AND b = y OR c = z'</code>, how does it parse this query? </p>
  
  <p><code>(a = x AND b = y) OR c = z</code>?<br />
  <code>a = x AND (b = y OR c = z)</code>?</p>
  
  <p>That is a simple example, but what about if you're mixing and matching AND / OR with even more search terms?</p>