A Long Island attorney has been sentenced to five years in prison for taking part in a massive mortgage fraud scheme that cheated banks out of $23 million.

In passing sentence against Cheddi Goberdhan of Elmont, Southern District Judge Shira A. Scheindlin on Tuesday said that “some of the poorest people in the community” were “swindled by this fraud.”