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]