Código SQL:
Ver original"grillaHas":
$consulta="SELECT DISTINCT a.zona,a.numero,a.nombre,a.variedad,a.tmestimadas as tmrecepcionadas,
b.potrero,b.hassembradas as superficie,b.v1_rendimiento AS rdtoEsperado,
(b.v1_rendimiento*b.hassembradas) as tmestimadas, c.nrocontrato , c.rut, (SELECT nrocontrato, rut, SUM(cantidad) Total
FROM tabla
WHERE periodo = 2011
GROUP BY nrocontrato, rut) as tmrecepcionadas
GROUP BY c.rut, c.nrocontrato
FROM AG_Contrato as a, AG_potrero as b, ag_visitaterreno v, ag_recepcion2011 c
WHERE
c.periodo='2011' AND
a.nroprecontrato=b.numero AND
a.periodo=b.periodo AND
a.numero=v.nrocontrato AND
a.periodo=v.periodo AND
a.periodo=$temporada order by a.numero"
Podria ser asi, no se si te funcione?