UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'eWzSe6uDURP3hWNtX/MgDXL01iiQh5UQMXjHA6CxCH0='
WHERE
key_id = '43e35ec1f2f8396bf23a986f196bf234c723800944aa195444da67f83fe3b75f'
AND (
token = 'eWzSe6uDURP3hWNtX/MgDXL01iiQh5UQMXjHA6CxCH0='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)