Fix SQL queries overhead when forums rating is enabled (requires phpBB3.1-RC5).