UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'fIBDVXgBwAhMTrtgJIjPgTfM03ilTBSaXjYWn3CTnNc='
WHERE
key_id = '43926034052e3a1e785370808ddabb7bec07ae5844065022b4c6dd893c993779'
AND (
token = 'fIBDVXgBwAhMTrtgJIjPgTfM03ilTBSaXjYWn3CTnNc='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)