UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'eFplBEDqrfLBm/OTf+r6DjoTXZ0XM/9pkIvsNgazAsI='
WHERE
key_id = 'ef06f5bcba6874421b89397eb2e625271c5d75fb06e2169d682e8fb5bf6ed9e8'
AND (
token = 'eFplBEDqrfLBm/OTf+r6DjoTXZ0XM/9pkIvsNgazAsI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)