diff --git a/lib/SimpleSAML/Consent/Storage.php b/lib/SimpleSAML/Consent/Storage.php
index 23c8a5077795144e04612c52f0cfe5923722de16..64d805f2afd19e9558e98b6b0f5a147e415d0851 100644
--- a/lib/SimpleSAML/Consent/Storage.php
+++ b/lib/SimpleSAML/Consent/Storage.php
@@ -86,7 +86,7 @@ class SimpleSAML_Consent_Storage {
 		/**
 		 * insert new entry into consent storage.
 		 */
-		$stmt = $this->dbh->prepare("REPLACE INTO consent VALUES (?,?,?,NOW(),NOW())");
+		$stmt = $this->dbh->prepare("INSERT INTO consent VALUES (?,?,?,NOW(),NOW())");
 		$stmt->execute(array($user_id, $targeted_id, $attribute_hash));
 		$rows = $stmt->rowCount();