Remove extra "ORDER BY" phrases in SQL when using "join" argument. bugid:110910