I believe a lawyer is someone who has the qualifications to practice law (be a prosector or defense attorney) because they got the degree and passed the state bar exam. An attorney is a lawyer who actively practices law (they work in the law field). So, every attorney is a lawyer but not every lawyer is an attorney.