UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '1X7zcpNO83Vr4Gvsf32GDJMco1ciHG2mHy/ZXP2Wwek='
WHERE
key_id = '5cf5dc3105830c6c2f146d3d1ac129d83af4709d59706ef4cfe7c4a530993a61'
AND (
token = '1X7zcpNO83Vr4Gvsf32GDJMco1ciHG2mHy/ZXP2Wwek='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)