per la cronaca soluzione:

codice:
<?php
$numero_tessera_socio=$row_Recordset1['numero_tessera_socio'];
$deleteSQL = sprintf("DELETE FROM soldi WHERE soldi.quota_annuale is null and soldi.quota_mensile is null and soldi.variazione_attività is null and soldi.numero_tessera_socio='$numero_tessera_socio'");
mysql_select_db($database_palestra, $palestra);
    $Result1 = mysql_query($deleteSQL , $palestra) or die(mysql_error());
	  ?>