mysql_query falhou e retornou FALSE em $result . Você deve verificar o valor retornado:
$id = mysql_real_escape_string($GET["id"]);
if ($result = mysql_query("SELECT * FROM Setting WHERE ID = '$id'"))
$row = mysql_fetch_array($result);
else
print htmlencode(mysql_error()) . "\n";
E é claro que você nunca deve colocar
$GET["id"] direto na consulta: