UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'FUCdk8TlRlXJiEMQL02WC/33iNaFHIwBzGu/ZUVqsTs='
WHERE
key_id = '41604a4460180aa63a34ee5c70f8df4cfa5c2d9ab2f6677454e96c06c12bba93'
AND (
token = 'FUCdk8TlRlXJiEMQL02WC/33iNaFHIwBzGu/ZUVqsTs='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)