There was an error running the query [In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregated column 'dafazend_dlavirtual.pirepfsfk.CreatedOn'; this is incompatible with sql_mode=only_full_group_by]