use $primary_key to fetch the primary key