title: SQL query with multiple unrelated tables
body: <p>In my mySQL database there are four tables: <code>breakfast</code>, <code>dinner</code>, <code>supper</code>, <code>supper</code>.
  Column names of these tables are the same. Everyone one of them has a column called '<code>accepted</code>' which is equal to either <code>0</code> or <code>1</code>.</p>
  
  <p>I want to make the SQL query that gives me one random row from these four tables
  WHERE 'accepted' column  is equal to 0.</p>
  
  <p>SQL query with only 1 table that works: </p>
  
  <pre><code>SELECT * FROM breakfast WHERE accepted=0 ORDER BY RAND() LIMIT 1
  </code></pre>
  
  <p>My version of SQL query with four tables that doesn't work:</p>
  
  <pre><code> SELECT * FROM breakfast, dinner, supper, dessert WHEREbreakfast.accepted=0
  AND dinner.accepted=0 AND supper.accepted=0 AND dessert.accepted=0 ORDER BY RAND() LIMIT 1
  </code></pre>