Errore nella query:
SELECT titolo_de as titolo, immagine
	FROM foto_pagine
	WHERE attivo = 'on'
	AND pagina = 
	ORDER BY ordine DESC

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY ordine DESC' at line 5