How to fix Duplicate alias in PostgreSQL | DevErrors