UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '0uDzhp7O6b+T8nk4Lb6ovQdZ5UYEOq4pt5qMSFPZ4cI='
WHERE
key_id = '73d8f836089a95149ecc1734dd3e63f677a729e2c0818a117a37cef9a490b270'
AND (
token = '0uDzhp7O6b+T8nk4Lb6ovQdZ5UYEOq4pt5qMSFPZ4cI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)