Fix the SQL Query as PSQL does UPDATE JOIN differently from any other SQL database