revised2 join familiy in mysql