Add error handling for unknown table referenced case