I pretty much forgot how to do this with SQL actually, the thing is I have an SQL select statement such as:
SELECT COUNT(*) NAME FROM `SomeTable` WHERE `SomeID` = xxx GROUP BY `Field`
Which does return a table with one field and many records containing numbers. What I want is to get the a single value of the maximum number among those records.
Just add LIMIT: