ok sembra funzionare così:
Codice PHP:
"hotel_es.id, hotel_es.name, hotel_es.address, hotel_es.zip, hotel_es.city_hotel, hotel_es.class, hotel_es.minrate, hotel_es.nr_rooms, hotel_es.photo_url, hotel_es.desc_en, hotel_es.desc_es, hotel_es.desc_it, "&_
"tipo_strutture.hoteltype_id, ranking.review_score, ranking.review_nr, ranking.preferred "&_
"FROM "&_
"(hotel_es LEFT JOIN tipo_strutture ON hotel_es.id=tipo_strutture.hotel_id) LEFT JOIN ranking ON hotel_es.id=ranking.hotel_id "&_
" where (hotel_es.city_hotel like '"&replace(nomecitta,"'","''")&"%' or hotel_es.city_preferred like '"&replace(nomecitta,"'","''")&"%') and (tipo_strutture.hoteltype_id in (" & struttura2 & ") or tipo_strutture.hoteltype_id IS NULL) order by ranking.preferred DESC,hotel_es.id"