update model Mod_Query.php