use correct table to order by created_at