Get id of last post per thread