A person is guilty of possessing, manufacturing, or distributing child pornography if the person:
Consent to performing these proscribed acts by a minor or a minor's parent, guardian, or custodian, or mistake as to the minor's age is not a defense to a charge of violating this section.
A violation of this section is a Class 4 felony. If a person is convicted of a second or subsequent violation of this section within fifteen years of the prior conviction, the violation is a Class 3 felony.
The court shall order an assessment pursuant to § 22-22-1.3 of any person convicted of violating this section.
SDCL 22-24A-3