Fixed Query Error.