query quotes bug