SQL error: 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 'AND DATEDIFF(fecha_alta, now())<=365 AND confirmacion="t" AND anuncio_ale="t"' at line 5
db_getListObject(): SELECT provincia, provincias.nombre AS nom_prov, vacaciones_en_familia FROM propiedades INNER JOIN provincias ON propiedades.provincia=provincias.id WHERE propiedades.provincia = AND DATEDIFF(fecha_alta, now())<=365 AND confirmacion="t" AND anuncio_ale="t"