nie działa on duplicate key update

0

siema nie wiem czemu to nie działa, pomoże ktoś?
ciągle dodaje rekordy.
pomimo że jest już ich kilka.
na wszystkie fieldy nałożyłem primary a id ma autoincrement

		$addLog = $Connect_Server->prepare("INSERT INTO walking_logs (player, x, y, to_player, create_date) VALUES (:player, :x, :y, :to_player, :create_date) ON DUPLICATE KEY UPDATE `to_player` = :updateto_player");
		$addLog->bindValue(':player', $_SESSION['logged'], PDO::PARAM_INT);
		$addLog->bindValue(':x', getPlayerPositionX($Connect_Server), PDO::PARAM_INT);
		$addLog->bindValue(':y', getPlayerPositionY($Connect_Server), PDO::PARAM_INT);
		$addLog->bindValue(':to_player', $Player['id'], PDO::PARAM_INT);
		$addLog->bindParam(':create_date', $date, PDO::PARAM_STR);
		$addLog->bindValue(':updateto_player', $Player['id'], PDO::PARAM_INT);
		$addLog->execute();
0

daj ddl tabeli

1 użytkowników online, w tym zalogowanych: 0, gości: 1