GROUP BY username
HAVING total = (SELECT COUNT(*) FROM photos);    // Use HAVING in place of WHERE
