title: MySQL PHP Grabbing rows not relevant to query
body: <p>I have no clue what I could be doing wrong. This has only ever happened with the Change logs that I've been trying to develop. I coded this from scratch, and it really couldn't be much simpler. </p>
  
  <p>For some reason when I try to grab rows that are only
  <code>is_dev='1'</code> (Is in development)
  OR 
  <code>planned='1'</code> (Is planned)
  AND
  <code>website_id='13'</code> (ID of website)</p>
  
  <p>It shows a result from another website <code>ID ("9")</code>.</p>
  
  <p>This is my current query:</p>
  
  <p><code>**$getdev = mysql_query("SELECT * FROM changelog_entries WHERE in_dev='1' OR planned='1' AND website_id='13' ORDER BY id DESC");**</code></p>
  
  <p>This is what I get in return, I wrote on the picture what website id they belong to.
  <a href="https://img.rnjrweb.com/errorchangelogs.PNG" rel="nofollow">https://img.rnjrweb.com/errorchangelogs.PNG</a></p>
  
  <p>I've also tried this query:</p>
  
  <p><code>**$getdev = mysql_query("SELECT * FROM changelog_entries WHERE website_id='13' AND in_dev='1' OR planned='1' ORDER BY id DESC");**</code>
   and when I do, it returns even more irrelevant rows.</p>
  
  <p>Any clues? I'm pretty stuck here. Thank you!</p>