Okay, so let’s start back at the beginning. You want exactly 10 records. Those 10 records need to be the latest hotels and include the country the hotel resides in. Right?
SELECT
tbl_hotels.*,
tbl_countries.*
FROM tbl_hotels
LEFT JOIN tbl_countries ON (tbl_countries.Id_Cntry = tbl_hotels.IdCntry_Hot)
ORDER BY tbl_hotels.Id_Hot DESC
LIMIT 0, 10
A hotel should only exist in 1 country. So unless your data is bad, the above should return what you are asking for.
[edit]My Proof of Concept in SQL Server:
CREATE TABLE #tbl_countries
(
Id_Cntry INT,
Nom_Cntry VARCHAR(50),
Region VARCHAR(100),
Misc INT
)
INSERT INTO #tbl_countries VALUES ('1', 'Spain', 'EU', '1')
INSERT INTO #tbl_countries VALUES ('2', 'Dominican Republic', 'Caribbean Island', '3')
INSERT INTO #tbl_countries VALUES ('3', 'Mexico', 'Central America', '5')
INSERT INTO #tbl_countries VALUES ('4', 'Tunisia', 'North Africa', '2')
INSERT INTO #tbl_countries VALUES ('5', 'Egypt', 'Middle East / North Africa', '2')
CREATE TABLE #tbl_hotels
(
Id_Hot INT,
IdCntry_Hot INT,
HotelName VARCHAR(100)
)
INSERT INTO #tbl_hotels VALUES ('1', '1', 'Apts. Tamaimo Tropical')
INSERT INTO #tbl_hotels VALUES ('2', '2', 'Aparthotel Be Live La Calita')
INSERT INTO #tbl_hotels VALUES ('3', '3', 'Apartments Be Smart Madrid Albufera')
INSERT INTO #tbl_hotels VALUES ('4', '4', 'M/S Semiramis III')
INSERT INTO #tbl_hotels VALUES ('5', '5', 'The Grand Bliss')
INSERT INTO #tbl_hotels VALUES ('6', '1', 'Pez Espada')
INSERT INTO #tbl_hotels VALUES ('7', '2', 'Eurostars Rembrandt Classic - Amsterdam')
INSERT INTO #tbl_hotels VALUES ('8', '3', 'Occidental Abou Sofiane')
INSERT INTO #tbl_hotels VALUES ('9', '4', 'Eurostars Das Letras')
INSERT INTO #tbl_hotels VALUES ('10', '5', 'Hotel Eurostars Astoria')
INSERT INTO #tbl_hotels VALUES ('11', '1', 'Sentido M/S Nile Saray')
INSERT INTO #tbl_hotels VALUES ('12', '2', 'Majesty Marina Vista')
INSERT INTO #tbl_hotels VALUES ('13', '3', 'Sofitel Karnak Hotel')
INSERT INTO #tbl_hotels VALUES ('14', '4', 'Hilton Alexandria Green Plaza')
INSERT INTO #tbl_hotels VALUES ('15', '5', 'Playa Mia Grand Beach Park')
INSERT INTO #tbl_hotels VALUES ('16', '1', 'Tiran Island Hotel')
INSERT INTO #tbl_hotels VALUES ('17', '2', 'H10 Conquistador')
INSERT INTO #tbl_hotels VALUES ('18', '3', 'Parador de Baiona')
INSERT INTO #tbl_hotels VALUES ('19', '4', 'Barceló Isla Canela')
INSERT INTO #tbl_hotels VALUES ('20', '5', 'Iberostar Founty Beach')
SELECT * FROM #tbl_countries
SELECT * FROM #tbl_hotels
SELECT
TOP 10
#tbl_hotels.Id_Hot,
#tbl_hotels.HotelName,
#tbl_countries.Nom_Cntry
FROM #tbl_hotels
LEFT JOIN #tbl_countries ON (#tbl_countries.Id_Cntry = #tbl_hotels.IdCntry_Hot)
ORDER BY #tbl_hotels.Id_Hot DESC
DROP TABLE #tbl_countries
DROP TABLE #tbl_hotels
Produced:
20 Iberostar Founty Beach Egypt
19 Barceló Isla Canela Tunisia
18 Parador de Baiona Mexico
17 H10 Conquistador Dominican Republic
16 Tiran Island Hotel Spain
15 Playa Mia Grand Beach Park Egypt
14 Hilton Alexandria Green Plaza Tunisia
13 Sofitel Karnak Hotel Mexico
12 Majesty Marina Vista Dominican Republic
11 Sentido M/S Nile Saray Spain
[/edit]