revised3 join family in mysql