Fixed DISTINCT and ORDER_BY combination for postgresql