title: How to combine two separate mysql queries
body: <p>What is the correct syntax for combining these mysql queries?</p>
  
  <pre><code>$reserved = mysql_query("Select * from reservations where $timestamp &gt;= ReservationStart AND $timestamp &lt;= ReservationEnd");
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$reserved2 = mysql_query("Select * from reservations where $ReservationEnd &gt;= ReservationStart AND $ReservationEnd &lt;= ReservationEnd");
  </code></pre>
  
  <p>I would like the reservation to meet both of these criteria but I am quite new to using mysql (and I know it's deprecated, but for the purpose of what i'm using it is easier), so i'm not sure how to put these two together.</p>