When I run this query in SQL Server
SELECT custid AAA, companyname AAA FROM Sales.Customers WHERE country = \'USA\'
It\'s running fine. But
You are giving two same aliases name to different column that will render as duplicate column in one table.
That's why it is giving error.
If you will make it different alias name then error will not occur.just try it and let me know whether it will work or not.