UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'HDxkfDn9/9/jdk5ZyfSo+GtvzBuYHLoQZq/RtR7IEWM='
WHERE
key_id = 'd536ae946624ddc69d8553ea72eeae5c8be4c890f42aa96a852bb9f0c78d41f6'
AND (
token = 'HDxkfDn9/9/jdk5ZyfSo+GtvzBuYHLoQZq/RtR7IEWM='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)