You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'fastigiata''' at line 7

CMS Block: alberi
Line: 956

SELECT SQL_CALC_FOUND_ROWS a.*, ae.ds_nome_comune FROM anagrafe a LEFT JOIN treeapp_lecco_smart.anagrafe_estesa ae ON a.id_anagrafe = ae.id_anagrafe, progetto_anagrafe pa WHERE a.id_anagrafe = pa.id_anagrafe AND pa.id_progetto = 42 AND cd_anagrafe = 'quercus_robur_'fastigiata'';