title: finding sum of values found from a query
body: <p>I have a query which returns two rows of data as count. I want to find sum of the column values. My sql:</p>
  
  <pre><code>(SELECT count(memberid) count 
     FROM `friendRequest`, Member 
     where status = 2 and memberid = sender and receiver = 19) 
  UNION 
  (SELECT count(memberid) count 
     FROM `friendRequest`, Member 
     where status = 2 and memberid = receiver and sender = 19)
  </code></pre>
  
  <p>I have tried using <code>Select Sum(my above query)</code> but I am getting error. I just need some of above values.</p>