(a) A person may not knowingly procure or solicit or offer to procure or solicit prostitution or assignation.
(b) A person who violates this section is guilty of a misdemeanor and on conviction is subject to imprisonment not exceeding 1 year or a fine not exceeding $500 or both.
(c) (1) Subject to paragraph (2) of this subsection, in a prosecution under this section, it is an affirmative defense of duress if the defendant committed the act as a result of being a victim of an act of another in violation of Title 3, Subtitle 11 of this article or the prohibition against human trafficking under federal law.
(2) A defendant may not assert the affirmative defense provided in paragraph (1) of this subsection unless the defendant notifies the State’s Attorney of the defendant’s intention to assert the defense at least 10 days prior to trial.