Make sure we always look up the view id before running a query