UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'VxXDQ9ZC7fJ4X2GcwEwhLNcwHfXEWz4h59xE4f/t3oI='
WHERE
key_id = '0afdf9110e2dcc6823f646096a0dce84e396da175558fc004b81932c9ba96db9'
AND (
token = 'VxXDQ9ZC7fJ4X2GcwEwhLNcwHfXEWz4h59xE4f/t3oI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)