A sanitation worker was arrested after falsely claiming he had been pistol-whipped while clearing snow in Queens — when he had actually been beaten up by two men after he patronized a prostitute, police sources said.

Michael Morelli, 31, claimed he was assaulted while clearing snow around a fire hydrant at Liberty Avenue and Guy R. Brewer Boulevard in Jamaica Wednesday morning, according to the sources.

He later changed his story, allegedly telling cops of the episode with the prostitute and the men.

Morelli was issued a desk-appearance ticket for allegedly filing a false report.