ezsystems/ezstarrating — pull request #12 by achasseux (2013-02-24 22:15:59+00:00)
Title: fetchNodeByRating : Fixes table order in SQL FROM clause, fixes offset

The fetch function named "fetch_by_starrating" (calling ezsrRatingObject::fetchNodeByRating() ) can trigger a fatal error because of the SQL request.
Since "sqlPermissionChecking" and other "FROM" clauses use "INNER JOIN" statement,
and "ON" statement use "ezcontentobject" table, the declaration of ezcontentobject
have to be written before other clauses.

Further, the use of "offset" in eZDB::arrayQuery() method return array with
the same offset in keys, we can not have $row[0]