se cerco: /elenco.asp?marca=aston+martin&modello=virage
mi funziona correttamente, se cerco /elenco_auto.asp?marca=aston+martin
mi da questo errore:

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

[Microsoft][ODBC Microsoft Access Driver] Syntax error in ORDER BY clause.

/elenco.asp, line 80

ho stampato la query a video il risultato è:
select * from Prodotti order by id asc where lcase(marca)=lcase('aston martin')

non capisco dove sbaglio..

codice:
dim modello_cerca
			modello_cerca=trim(request.QueryString("modello"))
			
			if len(modello_cerca)=0 then
				strSQL="select * from Prodotti order by id asc"
				f=0
			else
			strSQL = "SELECT * FROM Prodotti WHERE lcase(modello) like '"& lcase(replace(modello_cerca,"'","''")) &"%'"
			f=1
			end if
			
			dim marca
marca=trim(request.querystring("marca"))

if len(marca)>0 then
    
if f>0 then
strSql=strSql & " and "
else
strSql=strSql & " where "
end if

        strSql=strSql & " lcase(marca)=lcase('" & replace(marca,"'","''") & "')"

end if