Join sorting, limiting and join + having