/gas_dojo1.9/htdocs/data/gas/pagamenti.sql |
---|
146,7 → 146,7 |
coalesce(soci.nome || ' ', '') || coalesce(soci.cognome, '') as nominativo_socio |
from gas.soci |
inner join gas.pagamenti on pagamenti.id_socio = soci.id |
where pagamenti.data_pagamento is null; |
where pagamenti.data_pagamento is null and soci.id_anagrafiche is not null; |
}); |
if($sth_users->rows == 0){ |
die "Nessun socio ha pagamenti in sospeso"; |