UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '0HJO5k/n3+pvhVj4Fmg00cXkgKGe9Pv9Vwmz7bSrAQs='
WHERE
key_id = '97f52e604573fd559c7bacaa50ac7060b1ec0ebdda63b6ea770c1b51cec44afd'
AND (
token = '0HJO5k/n3+pvhVj4Fmg00cXkgKGe9Pv9Vwmz7bSrAQs='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)