How to fix Ambiguous alias in PostgreSQL | DevErrors