“I’m going to remand the defendant,” Feinman replied, before realizing she had not let defense lawyer Steven Goldman speak and adding “Oh, I’m so sorry.”

Goldman then said Moore has no criminal record, and claimed cops had gotten the wrong man.

“Our contention is that this defendant is not the person who did this. The lineup did not result in an identification of Mr. Moore. The fact that one eyewitness identified someone other than Mr. Moore suggests these charges are false,” he said.

But Feinman – who has been criticized by cops and prosecutors for being too lenient – ordered him back to jail.

Moore was targeting a rival over an unpaid $400 loan to buy marijuana, police sources said yesterday.

He shot at a crowd in front of a building on East 181st Street at 7:45 p.m. Monday night, striking Patience Boyd, 2, in the head, Jaelyn Rodriguez, 6, in her neck and intended victim Rick Rodriguez, 20, in the back, authorities said.

Patience’s condition was dramatically improved yesterday, although she remains on a respirator. Moore turned himself in last night after cops released his photo and was charged with attempted murder.