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 ''6d0f846348a856321729a2f36734d1a7', NOW()) ON DUPLICATE KEY UPDATE updated_at=NO' at line 1