slight query syntax fix