the dataset of subquery is here
id itm_id paid_at ord_r total_r 17 3266 2013-05-25 08:27:17 1 3 17 3219 2013-05-25 08:27:17 2 3 17 3964