title: Count multiple fields
body: <p>I have a table called <code>reservations</code>. I'd like to count all <code>firstName</code> and <code>guestFirstName</code> fields.</p>
  
  <p>I've tried:</p>
  
  <pre><code>$records = $dbh-&gt;query('SELECT count(firstName, guestFirstName) from reservations')-&gt;fetchColumn;
  </code></pre>
  
  <p>This gives me an error. How can I count all <code>firstName, guestFirstName</code> records?</p>