UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'VeqxDeizyQHzPkJZi48Ge6/0pTmW/wOgmKizGrB3Ayk='
WHERE
key_id = '8ac3ed032336e10e9eb8dbdc5531168052cc22773c54d8d766fa8e924bf92532'
AND (
token = 'VeqxDeizyQHzPkJZi48Ge6/0pTmW/wOgmKizGrB3Ayk='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)