Update classes/mingle/query.php