eccomi qua ciao ...
allora ho questo dilemma:
devo fare una select da più tabelle

Codice PHP:
<%
struttura=Request.querystring("tipos")
if 
struttura "" then
struttura
=(",2,13,14,23,19,21,3,")
else
struttura = (","&struttura&",")
end if
%>


strSQL "select  * from hotel_es where hotel_es.city_hotel like '"&replace(nomecitta,"'","''")&"%' or hotel_es.city_preferred like '"&replace(nomecitta,"'","''")&"%' and tipo_strutture.hoteltype_id (IN) "&struttura&" order by hotel_es.minrate asc,hotel_es.id" 
praticamente io dalla tabella hotel_es vorrei estarre gli id che nella tabella tipo_strutture campo hoteltype_id hanno 2 o 13 o 14 in base alla querystring passata ..

Stampa della query:
select * from hotel_es where hotel_es.city_hotel like 'Barcellona%' or hotel_es.city_preferred like 'Barcellona%' and tipo_strutture.hoteltype_id IN ,2,13,14,23,19,21,3, order by hotel_es.minrate asc,hotel_es.id


errore:
Microsoft JET Database Engine (0x80040E14)
Errore di sintassi (operatore mancante) nell'espressione della query 'hotel_es.city_hotel like 'Barcellona%' or hotel_es.city_preferred like 'Barcellona%' and tipo_strutture.hoteltype_id (IN) ,2,13,14,23,19,21,3,'.

:master: