FATAL ERROR: BAD DATABASE
SELECT locations.database AS dbase, locations.location_id AS lid FROM locations LEFT JOIN hosted_sites ON locations.parent_site = hosted_sites.site_id WHERE hosted_sites.site_path = '' AND locations.default_location = 1 AND hosted_sites.site_status != 'O' LIMIT 1;
/toms/