SAN ANTONIO (AP) — A man who faked being a Texas law officer and demanded free sex from a prostitute has been sentenced to 35 years in prison.

A judge in San Antonio on Monday sentenced 42-year-old Raul Garza III.

Jurors on Friday convicted Garza of felony impersonating a public servant. Court records show Garza had previous convictions for burglary and robbery.

Prosecutors say Garza last year, while driving a police-like vehicle, pretended to be a deputy and sought free sex from a prostitute. The woman submitted to Garza but later called police when he allegedly wanted suggestive photos of her 10-year-old daughter.

Garza has denied pretending to be an officer. He testified he never committed a crime and just refused to pay the prostitute.