Fix "show rating" for SQL and PHP