Fixed wrong order clause in avatar-sql (fixed #67)