SELECT unions.name as unions,thana.name as thana,district.name as district FROM unions JOIN thana ON thana.id = unions.psID JOIN district ON district.id = unions.distID where unions.id=3