Now really fix the variable by reference error.
Implement buildQuery to order by created date since our IDs are not numeric.
Fix typo.