Update QueryEngine.php