Buongiorno,

sapreste aiutarmi ad individuare il problema su questa query che lavora perfettamente su MySql 5.1 mentre su MySql 5.0 non produce nessun risultato e nessun errore.

codice:
SELECT
sottoeventi_personale.id_sottoevento,
sottoeventi.id_evento,
sottoeventi.id_pdv,
eventi.nome_evento,
eventi.id_tipo_evento,
tipo_eventi.tipo_evento,
pdv.nome_negozio
									 
FROM sottoeventi_personale
									 
LEFT JOIN sottoeventi
ON sottoeventi_personale.id_sottoevento=sottoeventi.id
									 
LEFT JOIN eventi
ON sottoeventi.id_evento=eventi.id
									 
LEFT JOIN tipo_eventi
ON eventi.id_tipo_evento=tipo_eventi.id
									 
LEFT JOIN pdv
ON sottoeventi.id_pdv=pdv.id
									 
WHERE sottoeventi_personale.id_personale = '".$row2['id']."'
									 
AND sottoeventi_personale.data_sottoevento = '".posts('data_sottoevento')."'
AND sottoeventi_personale.id != '".$row2['id_sottoeventi_personale']."'
Grazie

SK