Converted this to use MySQL and it throws the following exception:
SQLSTATE[HY000]: General error: 3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'dctrn_result.publishedAt_5' which is not in SELECT list; this is incompatible with DISTINCT").