SAN ANTONIO -

A federal judge in San Antonio on Wednesday sentenced a drive-thru restaurant worker to nearly 22 years in prison for selling child porn to patrons.

Juan Antonio Rosa, 36, pleaded guilty in March to distributing child pornography. Rosa allegedly met the porn customers online.

Prosecutors say buyers used the code word "Scooby Doo" to get the memory cards along with food at a Wendy's Co. restaurant. Officials say the restaurant operators were not aware of the illegal deals.

Rosa served time on a state child porn conviction and started working at Wendy's after his 2010 release. He was arrested last summer after child porn turned up on his computers at an apartment in Converse.

The restaurant location hasn't been released.