another good option would be the canik TP9SF. can be found in shops for $400 or online for ~ $340 shipped. quality is on par with an HK VP9 or glock, but for a few hundred less.
- - - Updated - - -
^also good option, although personally if i were shooting a gen 2 G22 i would purchase an aftermarket barrel as glocks' chamber support back then was iffy. so would factor in cost of another barrel (~$100), but still good deal. YMMV.
- - - Updated - - -
Go on gunbroker.com. Buy a cheap gen 2 Glock 22 police trade in for $300 and then a MA FFL transfer for $25. Then buy a holster, some pre ban mags, some ammo and then take a pistol class at Sig academy or another school with the balance of the $800.
^also good option, although personally if i were shooting a gen 2 G22 i would purchase an aftermarket barrel as glocks' chamber support back then was iffy. so would factor in cost of another barrel (~$100), but still good deal. YMMV.