$sql = "SELECT `id`,`emailf`,`emailt`,`time`,`registered` FROM `data` WHERE registered='$uname' AND deleted='no'";
is the SQL command to send and record what was sent by what IP for the User, the value $uname = $ip from an IP timestamp.
When inserting into the actual SQL it runs in a loop not excluding the the SQL query, thus it creates this command:
$sql = "SELECT `id`,`emailf`,`emailt`,`time`,`registered` FROM `data` WHERE registered='$uname' AND deleted='no'"; $sql = "TABLE_ ALL repeat"
Making duplicate email indentations and bogging system down.
**Note this is a conversion from CGI to PHP handle so its only one instance of send.