title: SQL: Taking the result of of query and using it another - combine
body: <p>I have two SQL queries, one that uses the other after getting its result.</p>
  
  <p><code>SELECT users.data from users WHERE users.data2 = value</code></p>
  
  <p><code>SELECT mods.data FROM mods WHERE mods.data2 = (result of previous query)</code></p>
  
  <p>How would I combine these statements? There are similar questions as such, but I'm new to SQL and don't understand them.</p>