New method for retreiving records using inner joins