UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'WVFa2Qb0+4juPvk9KX+gZJm7VjJF+p8y23F7DKtwZyQ='
WHERE
key_id = 'a5153db0c3f238adf591f63e1abe5916c949a1759074cf04a3d6c012384a5edd'
AND (
token = 'WVFa2Qb0+4juPvk9KX+gZJm7VjJF+p8y23F7DKtwZyQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)