Update lib/class/db/query.php