99.9% of the time this is caused by a ground loop. You may have the battery grounded to the frame, the headunit grounded to the dash and the amp grounded to the body. I'm not saying that is the exact case but that's what causes a ground loop. What you want to do is connect all of these grounds...