It entirely depends on the makeup of your credit report, so it could or it couldn't.
It should be simple to get the old mortgage to stop reporting since it was transferred/sold... you might have to contact American Home Mortgage (if you can still find contact information for them).
Free Mortgage Advice & Pre-Approvals (FHA, VA, USDA, Fannie, Freddie, Non-Prime, Construction, Renovation/Rehab, Commercial) since 2002
Located in Southern California and lending in all 50 states