Minor change. Variable query was misspelt as qeury.