UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Df/DfK+knbVQmJjL75aHASC8fl07JlcELQh5gYEyCmQ='
WHERE
key_id = '92cc60829afa20b0daa68b67449fd6d465a9c74ec61f4a0abe69b6a93e2e8475'
AND (
token = 'Df/DfK+knbVQmJjL75aHASC8fl07JlcELQh5gYEyCmQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)