Fix best translations query

This fixes the query that grabs the best (most highly voted) translation for a set of phrases. It broke when we switched to Postgres.