You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''ff1418e8cc993fe8abcfe3ce2003e5c5', NOW()) ON DUPLICATE KEY UPDATE updated_at=NO' at line 1