UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'LRTDoT/CD1qEwELxgKr2C6hCPxsFKl+NI8VJn5yJXIU='
WHERE
key_id = '4ab9120e37f04121d50d786e69911eb2fc3ea829928bad83bb192f5f9543ed9f'
AND (
token = 'LRTDoT/CD1qEwELxgKr2C6hCPxsFKl+NI8VJn5yJXIU='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)