Changed a query call so it would work right.