Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 8.0(w) Driver][mysqld-5.5.5-10.11.6-MariaDB-log]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 'aquila' and stato_pubblicazione = 'A' group by marca order by marca' at line 1

/core/ricerca_master.asp, riga 838