When you generate code from SQL Server Management Studio [SSMS] and edit it later, you can encounter the following error.
Issue Details
This problem occurs when you edit the SQL script after you enter it into your page. Errors like this are bound to happen more times over than they would if you use SQL Server Management Studio to generate your SQL Script.
Microsoft OLE DB Provider for SQL Server error '80040e14' The objects "Cat" and "Cat" in the FROM clause have the same exposed names. Use correlation names to distinguish them. /Cat.asp, line 68
Recreate Issue
[SQK Server - Incorrectly Formatted SQL Select Statement]