Salve a tutti, ancora una volta ho un problema con le query per mysql.
la seguente stringa:
.................................................. .........
codice:
sqlx = "SELECT DISTINCT From annunci where IDCategoria='" & catid & "' order by cognome ASC" 
 response.write(sqlx)
mi da il seguente errore:

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

[MySQL][ODBC 3.51 Driver][mysqld-4.0.17-nt]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 'From annunci where IDCategoria='13' order by cognome ASC' at li

/Menu1.asp, line 11

.................................................. ..............

come posso modificarla?

Grazie a chi saprà aiutarmi!