I get "Invalid use of group function" with this query and don't know why.
I'm trying to look through a database of entries to find the user with the most entries and get the name and the number. Thanks!
$sql = "SELECT sUsername, COUNT(sUsername) FROM tbl_questions WHERE sSchoolID = ".$_SESSION['schoolid']." ORDER BY COUNT(*) DESC LIMIT 0,1";