Error in stats brands query! SELECT count(DISTINCT ID) as brandCount, gliderBrandID FROM leonardo_flights WHERE userID >0 AND ( gliderBrandID !=0 ) GROUP BY gliderBrandID ORDER BY brandCount DESC