fixed reference query