UPDATE
cscart_june_setuplock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'iYwO5ZUmtVl3rMucwr3bD6hnDYAYLIimgwxmCFMsdRc='
WHERE
key_id = '60ed06bd159407dd2a46bd272c1b4d97e81367ef858ec192890f1dac72435190'
AND (
token = 'iYwO5ZUmtVl3rMucwr3bD6hnDYAYLIimgwxmCFMsdRc='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)