- corrected a problem with the primary_key method,
  when join models without primary keys are used or
	primary keys cannot be found in the model anyway