title: merging two SELECT queries
body: <p>I am either getting old or the queries that I need to write are getting more and more complicated. The following query will get all the <code>tasks</code> associated with the user.</p>
  
  <pre><code>"SELECT `date` 
     FROM `tasks` 
    WHERE `user_id`= 1;"
  </code></pre>
  
  <p>The <code>tasks</code> table is (<code>id</code>, <code>date</code>, <code>user_id</code>, <code>url_id</code>);</p>
  
  <p>Now, I need to get as well records that <code>url_id</code> associates with the user trough the</p>
  
  <pre><code>`urls` table (`id`, `user_id`)
  </code></pre>
  
  <p>The standalone query would look like this:</p>
  
  <pre><code>"SELECT `t1`.`data` 
     FROM `tasks` `t1` 
     JOIN `urls` `u1` ON `u1`.`id` = `t1`.`url_id` 
    WHERE `u1`.user_id` = 1;"
  </code></pre>
  
  <p>Though, is it possible to merge these two queries into a single query? My logic says it should be, though I don't see how to do the actual JOIN.</p>