// Referal points found so add them and set line(s) to completed='Y'
$content['points'] += $ref;
SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_doubler` SET completed='Y' WHERE refid=%s AND completed='N' AND is_ref='Y'",
// Referal points found so add them and set line(s) to completed='Y'
$content['points'] += $ref;
SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_doubler` SET completed='Y' WHERE refid=%s AND completed='N' AND is_ref='Y'",