UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'LlDmN0C25hNq/+122yU773nmJG9tMRaA6UOxpVXASSI='
WHERE
key_id = '074d054836b24fe93796f7de076b9e8b81289111ac1d0bf5297fabad71e37e0b'
AND (
token = 'LlDmN0C25hNq/+122yU773nmJG9tMRaA6UOxpVXASSI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)