[bug] PG::InvalidColumnReference: ERROR:  for SELECT DISTINCT, ORDER BY expressions must appear in select list

distinct should be added manually on the main app when needed.
better table header