How to fix Ambiguous column in PostgreSQL | DevErrors