UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'ZvkbbC6ksUq+FuCgi6Ivg3nNdwf+/Y++jzTEpg3acGE='
WHERE
key_id = '25a4df23314c9df7f49c160985d8f6530ec1529445667b4472d4e74413e55986'
AND (
token = 'ZvkbbC6ksUq+FuCgi6Ivg3nNdwf+/Y++jzTEpg3acGE='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)