Invalid query: SELECT nombre_hotel, nombre_corto, estilo_en, intereses_en, zona_ext_en, nombre_destino, nombre_pais, nombre_continente, destino_modrewrite, pais_modrewrite, continente_modrewrite, tripadvisor_widget FROM hotel, destino, pais, continente WHERE hotel.id_destino = destino.id_destino AND destino.id_pais = pais.id_pais AND continente.id_continente = pais.id_continente AND activo=1 AND id_hotel= 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 '' at line 7