fixed bug where addWhere('field', null) was considered a raw sql statement equal to "field"
only load object if all primary keys are set