Model Deforms When I move A Bone
The automatic weights aren't perfect, you can manually decide what part of the mesh gets to be controlled by what bone.

It's called weight painting.

Here is a tutorial for beginners.