Comment above regarding the use of ```query``` instead of ```&query[0]```.