UPDATED: Avoided the duplicated JOINS