UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'U71MG6veO/1MvQME/YMZgG2bUKftnHo4U2TmISFnl3E='
WHERE
key_id = '05b39a002d0963d15234ab88c7aaa910c555e33de6fa0d2000cb4cb715455cff'
AND (
token = 'U71MG6veO/1MvQME/YMZgG2bUKftnHo4U2TmISFnl3E='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)