Fixed Join Query to work with Returned_On relation.