UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'f3/sQ/JBziZSwLuyZ2BTqf9LiPPj6sXH0SDCRxiJ6Fo='
WHERE
key_id = '92ca8cc3e42ef380ffa76f9ac0facb67e2b34674cd785a83068ab80bc1e1fe51'
AND (
token = 'f3/sQ/JBziZSwLuyZ2BTqf9LiPPj6sXH0SDCRxiJ6Fo='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)