Selecting on aggregate column without alias generates code that doesn't compile

This query produces code in ISU that doesn’t compile:

	<query name="DuplicateSsoUsernames">
			SELECT ur.SsoUsername, iptur.IdentityProviderId, COUNT(*) 
			FROM UserRecord ur
			JOIN IdentityProvidersToUserRecords iptur ON ur.Username = iptur.Username
			GROUP BY ur.SsoUsername, iptur.IdentityProviderId
			HAVING COUNT(*) > 1
			<postSelectFromClause name="All"></postSelectFromClause>

it wasn’t until I added as Count after COUNT(*) at the beginning of the statement that it generated correct code.