Throw exception on multiple occuring primary keys.

This way the programmer cannot make a mistake. I wondered where all my rows gone because I joined from the table which had the primary key listed multiple times in the resultset.
Maybe this is not a very elegent way to do it, but what do you think of it?