UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'VSP29zDMmrHYE6o7/tPrF2qdwM5PbBzgQfx5+QFH8PY='
WHERE
key_id = '195c0e6179189ae505cf76500303742f2b968e6a42f604ae8d33be863cdad20a'
AND (
token = 'VSP29zDMmrHYE6o7/tPrF2qdwM5PbBzgQfx5+QFH8PY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)