Check the proper primary key for equality