Updated getCommunityResults.php SQL