title: Greater than operator not working in a query
body: <p>Could anyone suggest why the greater than operator is being ignored in this MySQL query?</p>
  
  <pre><code>$sql = "SELECT *
  FROM `items`
  WHERE `short_description` LIKE '%".$term."%'
      OR `description` LIKE '%".$term."%'
      AND `quantity` &gt; 0
  ORDER BY year DESC, denomination ASC, description ASC $max";
  </code></pre>
  
  <p>I have a similar query on the same site that works</p>
  
  <pre><code>$sql = "SELECT *
  FROM `items`
  WHERE `category` = '".$cat_id."'
      AND `quantity` &gt; 0
  ORDER BY year DESC, denomination ASC, description ASC;";
  </code></pre>
  
  <p>Everything works well, except the quantity comparison on the first query, Its has got me stumped.</p>