Fix bug in PDO

was changing the value of the primary key!