UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'f6YPyRgnQendgQgsid/GZx11WCQdz4RcCBbsvQ+IUts='
WHERE
key_id = '2bd70fa1f9a84ec058257f0cc86eb6848168860fe8e7176d8e43fc4a863c747d'
AND (
token = 'f6YPyRgnQendgQgsid/GZx11WCQdz4RcCBbsvQ+IUts='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)