- GREATEST(a.created, s.created) AS created,
- GREATEST(a.updated, s.updated) AS updated,
- GREATEST(a.created, s.created, a.updated, s.updated) AS modified
+ GREATEST(a.created, e.created) AS created,
+ GREATEST(a.updated, e.updated) AS updated,
+ GREATEST(a.created, e.created, a.updated, e.updated) AS modified