Bug in inner join + order by fixed