Fixed error in maintenance.php query.