pvcarrera/mysqlconnector — comment on commit 08f31386dc60f1face9c8c522cb3bf9889334525
File: src/MySQLConnector.php line 35
By pepellou:

First, same comment as with count: semantics for typical SQL is that arrays are returned.

Second, current code assumes that your looking for the max of the first field; thus, it will fail on more complex selects. If you don't change SQL semantics you don't have to deal with this sort of issues.