Bad subdomain SQL query.