NEW YORK (CBSNewYork) — A New York City police office is in some trouble with the law, himself.

Officer Luis Gutierrez, 37, was arrested and charged with patronizing a prostitute on Thursday.

READ MORE: NYPD: 28-Year-Old Woman Shot To Death Outside Catering Hall In Cypress Hills, Brooklyn

Law enforcement sources told 1010 WINS the officer from the 114th Precinct in Queens was on duty when he allegedly offered a prostitute money.

READ MORE: New York City Public High Schools To Reopen March 22, All Sports To Return Mid-April

There was just one problem.

Sources said the prostitute was an undercover cop. Gutierrez, who has been on the force for a dozen years, was also charged with official misconduct and conspiracy.

MORE NEWS: Times Square's 'Naked Cowboy' Robert Burck Arrested In Florida

Gutierrez was given a desk appearance ticket.