UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Rf2AZXqfZEPZ0uybq2uUdZIlGA/lVjPhZ+U21lHsgZ4='
WHERE
key_id = '26ffdc90410cfd2b9bd3784baeacec80793c44a50dc842807c002d35bdbd4c93'
AND (
token = 'Rf2AZXqfZEPZ0uybq2uUdZIlGA/lVjPhZ+U21lHsgZ4='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)