title: MySQL Query Selecting records from a database where a value equals one of two different things
body: <p>I have to get records from my MySQL DB where:</p>
  
  <pre><code>sentto = "$username"
  </code></pre>
  
  <p>OR </p>
  
  <pre><code>sentto = "everyone"
  </code></pre>
  
  <p>How would I put this in a MySQL query? I tried a few things, but they don't seem to be working:</p>
  
  <pre><code>mysql_query("SELECT * 
               FROM pmessages 
               WHERE status='unread' 
                   AND sentto='$username' || sentto='everyone'");
  
  mysql_query("SELECT * 
               FROM pmessages 
               WHERE status='unread' 
               AND sentto='$username' 
                   AND sentto='everyone'");
  </code></pre>
  
  <p>I seem to be stumped, if anyone knows how to do this the right way please let me know. This is a new scenario for me. Thank you!</p>