The subframe issues mainly plagued the early E46's (1999, 2000, maybe some 2001) and the M3. Non-M E46's from 2002-2006 aren't really affected by the issue, though there are some outliers. Every once in a while you'll hear about someone who falls into the 2002-2006 non-M category who has the issue, but those are rare and not nearly as common as the 1999-2001 and M3 occurrences.
Your best bet would be a 2004-2005 sedan.