revised1 join familiy in mysql