Error 500

CDbCommand failed to execute the SQL statement: SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "staff_pkey" DETAIL: Key (nip)=(UNY.51901880125222) already exists.