nick martino , a narcotics detective shed met in the corridor at the courthouse and dated for a few weeks , had told sasha hed turned down a promotion because it would entail a transfer to internal affairs , also known as the rat squad .