SELECT itemcategorys.id_itemcategory, itemcategorys_1.id_itemcategory, itemcategorys_2.id_itemcategory, itemcategorys.id_itemcategory AS cat1, itemcategorys.itemcategoryname AS catnombre1, itemcategorys_1.id_itemcategory AS cat2, itemcategorys_1.itemcategoryname AS catnombre2, itemcategorys_2.id_itemcategory AS cat3, itemcategorys_2.itemcategoryname AS catnombre3, itemcategorys_3.id_itemcategory AS cat4, itemcategorys_3.itemcategoryname AS catnombre4, itemcategorys_4.id_itemcategory AS cat5, itemcategorys_4.itemcategoryname AS catnombre5, items.*, itemgeneros.itemgeneroname, itemmakes.itemmakename, itemtemporadas.id_itemtemporada, itemtemporadas.itemtemporadaname, itemtemporadas.itemtemporadaorder, itemtemporadas.itemtemporadaorder FROM (((items LEFT JOIN itemmakes ON items.id_itemmake = itemmakes.id_itemmake) LEFT JOIN itemgeneros ON items.id_itemgenero = itemgeneros.id_itemgenero) LEFT JOIN (itemcategorys AS itemcategorys_4 LEFT JOIN (itemcategorys AS itemcategorys_3 LEFT JOIN ((itemcategorys AS itemcategorys_2 LEFT JOIN itemcategorys AS itemcategorys_1 ON itemcategorys_2.itemcategoryfather = itemcategorys_1.id_itemcategory) LEFT JOIN itemcategorys ON itemcategorys_1.itemcategoryfather = itemcategorys.id_itemcategory) ON itemcategorys_3.itemcategoryfather = itemcategorys_2.id_itemcategory) ON itemcategorys_4.itemcategoryfather = itemcategorys_3.id_itemcategory) ON items.id_itemcategory = itemcategorys_4.id_itemcategory) INNER JOIN itemtemporadas ON items.id_itemtemporada = itemtemporadas.id_itemtemporada WHERE itemstatus='si' AND items.id_page=8 AND (itemcategorys.id_itemcategory='605' OR itemcategorys_1.id_itemcategory='605' OR itemcategorys_2.id_itemcategory='605' OR itemcategorys_3.id_itemcategory='605' OR itemcategorys_4.id_itemcategory='605') ORDER BY itemtemporadaorder DESC, itemorder DESC, itemproximamente ASC, id_item DESC, itemcode DESC