UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'vsWhC6oICTH10fnwO3UrrsQx5yRAdCYsFe5D2bPiHAI='
WHERE
key_id = '13793aa58b0827d23f2d6ed3b34cbbe19358701c626824962257baa203e79986'
AND (
token = 'vsWhC6oICTH10fnwO3UrrsQx5yRAdCYsFe5D2bPiHAI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)