OK, I thought I resolved this by not using the ‘get_posts’ tag. But the problem has come back when I used a plugin to fetch latest posts. I have now removed from my sidebar links to my latest posts.
Why do tags meant to get the most recent posts screw up the permalinks?