primo piccolo passo verso il risultato finale:

codice:
SELECT 
	l.idlingue,l.idbk_utenti,l.alfa3,l.`default`,
	max(case when lc.idlingue = 1 then testo else '' end) as testo_ita,
	max(case when lc.idlingue = 2 then testo else '' end) as testo_eng,
	max(case when lc.idlingue = 3 then testo else '' end) as testo_fra
FROM 
	lingue l JOIN lingue_contenuti lc ON l.idlingue = lc.idlingue
WHERE
	lc.tabellariferimento = 'lingue' AND
	l.status = 'on' AND
	lc.status = 'on'
GROUP BY
	lc.idriferimento
estrae i dati che mi servono come mi servono ora si passa alla SP per le lingue e poi a tutte le altre..