\'date\' is in timestamp format and has duplicates for the same event id in my event table
if I am doing a subquery getting a max(date) in order to remove duplicate,