Incorrect syntax near the keyword 'with'. If this statement is a common table expression, the previous statement must be ...