I found the problem was that the array was not being built on the last record because when the returned result of the query is 0 no array will be built. Therefore the previous array w/ one record was kept active. Thanks.
Here's to alcohol...the cause of ... and solution to ... all of life's problems - - Homer J. Simpson