Fixed issue with a distinct query where order by fields are not selected,
  Entity Facade now automatically selects order by fields for distinct
  queries