Fix invalid "USING" order in Postgres query generator