When the statement says "people are told they have a right to have a lawyer," in the due process of law who are the people referring to?

Please hurry because I'm about to go to sleep.

If the police are questioning a person about possibly having committed a crime, the suspect has the right to have a lawyer with him/her. The lawyer will protect that person's rights and advise him what to say or not say so that the accused doesn't incriminate himself.

http://www.nacdl.org/public.nsf/championarticles/A0301p54?OpenDocument

When the statement says "people are told they have a right to have a lawyer" in the due process of law, it generally refers to any individual who is involved in a legal proceeding, such as a criminal trial or a civil lawsuit.

The right to have a lawyer is granted to individuals who are accused of a crime or face potential deprivation of their rights, liberty, or property. This includes defendants, or people who have been formally charged with a crime, as well as plaintiffs, or individuals who initiate a civil lawsuit against someone else. Additionally, this right also extends to individuals who are involved in other legal processes, such as witnesses or those who are subject to interrogations by law enforcement officials.

It's important to note that the specific scope of this right may vary depending on the jurisdiction and the nature of the legal system in question. However, in many legal systems, including the United States, the right to have a lawyer is considered a fundamental safeguard to ensure a fair and just legal process.