New York- NOT even a magician could make potty-mouthed pornographer Al Goldstein's legal problems disappear this week.

"I love Al," illusionist Penn Gillette - of Penn & Teller fame - wrote a judge in hopes of getting his down-on-his-luck buddy's 2003 harassment conviction tossed. "He's a dirty, filthy, annoying, national treasure," Gillette gushed. "The United States of America will be a little less free and beautiful when he's gone . . . please try and help my friend."

But Manhattan Supreme Court Justice Renée White denied the application. Goldstein, the bankrupt former Screw magazine publisher, claimed he was too incoherent from 18 medications - for pain, bi-polar disorder, depression, diabetes, hypertension, high cholesterol and obesity - to have pled guilty to harassing his ex-wife.

Goldstein admitted last year that he told fans of Screw and his "Midnight Blue" cable show to call Gena Fishbein Goldstein at work and sling profanities at her for failing to invite him to their son's Harvard Law School graduation. "The judge hates me and it's a shame," Goldstein told The Post's Laura Italiano when reached at his new job - hosting at the Second Avenue Deli.

"They're really trying to break this guy," said his lawyer, Charles DeStefano. "It's obscene."