ho provato così, ma restituisce l'errore
Codice PHP:

SELECT 
FROM entrate WHERE MONTH(entrate.data) = 12 AND YEAR(entrate.data)= 2007 

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 'WHERE MONTH(entrate.data) = 12 AND YEAR(entrate.data)= 2007' at line 1


come faresti tu ad estrarre tutti i records la cui data appartiene nel range del mese di dicembre 2007 ?