UPDATE
cscart_june_setuplock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'nu4hMQDsWM4O00Box3Vjwsq8Yf/7h+bwiKN6SJqS5ts='
WHERE
key_id = '8e7028357bdd718492e3d0a9276700941672d18584360196724f0635dfada790'
AND (
token = 'nu4hMQDsWM4O00Box3Vjwsq8Yf/7h+bwiKN6SJqS5ts='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)