UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'GNbFQl3OVQOFti+LzRJ1STDcs++F8yXqHJR2NB3sptM='
WHERE
key_id = '8c354953e3e1b2bb7c539c8771f2b534dc47d502cc821ac1f87624b7c4384ec8'
AND (
token = 'GNbFQl3OVQOFti+LzRJ1STDcs++F8yXqHJR2NB3sptM='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)