SELECT d.id, d.lat, d.lng, d.name, d.list_as, d.code, d.country_iso, d.hotel_city_name, d.url, t.name as tname, t.total, c.name as cname, c.code as ccode, d.description, d.flickr_farm, d.flickr_image, d.flickr_owner, d.flickr_name, d.use_flickr, d.country_iso, d.hotel_file_name, d.agoda_city_name FROM wp_tour_top10s t, wp_tour_destinations d, wp_tour_countries c WHERE d.code = %s AND t.code = d.url AND (d.country_iso = c.iso or d.second_country_iso = c.iso)puerto_rico