My guess is that you copied the interior from another cell (perfectly normal), but there are some things that are telling the NPC ai that it's ok to enter because it thinks it's still part of the cell you copied - for example, if you copied Breezehome and didn't change the Location, if your spouse was settled in Breezehome, she might show up in your new cell. Right click the name of the cell on the cell list and go to edit. Check the Location on the Common Data tab, and make sure it's not registering as someplace it shouldn't be (there's usually a default Hold location for whatever Hold you're in - usually a good thing to replace it with). Also check the Interior Data and Encounter Zone (although I think Encounter Zone is more for the Radiant Quest generator.)