mysql_query fallito e restituito FALSE in $result .
Dovresti controllare il valore restituito:
$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 ovviamente non dovresti mai mettere $GET["id"] direttamente nella query:
