|
|
|
מערכת סינון מתקדמת |
| * | סמן את הקטגוריות המועדפות עליך והמערכת תצמצם עבורך את התוצאות | |
|
|
מלונות בוטיק פנויים קטגוריות נבחרות למלונות בויטק קטגוריות נבחרות לוילות יוקרתיות קטגריות נבחרות לצימרים יוקרתיים
|
|
|
| |
|
|
59:s3 Incorrect DATE value: ''
SELECT SQL_CALC_FOUND_ROWS sites.siteID, sites.unit_desc, sites.totalNumRooms_txt as `rnum`, sites.unit_price, sites.unit_priceTo, sites.phone1, sites.phone2, sites.prPicture1, sites.link_type,sites.newSelect, sites.newSearchPic1, sites.newSearchPic2, sites.enableOutLinks, sites.typeID, sites.shortDesc AS shortDesc, sites.longDesc AS longDesc, sites.TITLE AS TITLE, settlements.TITLE as settlement_name, main_areas.TITLE as area_name, IF(sites.link_type = 1,sites.link,'') as `link`, SitesPartnerPhones.zphone, '1' as `nw`, COUNT(DISTINCT dates.dateID) as `dates`, UNIX_TIMESTAMP(sites.upd_time) as `upd_time`
FROM `sitesTypes` INNER JOIN `sites` USING(`siteID`) INNER JOIN `settlements` USING(`settlementID`) INNER JOIN `areas` USING(`areaID`) INNER JOIN `main_areas` USING(`main_areaID`)
INNER JOIN `Deals` ON (Deals.siteID = sites.siteID AND Deals.Deal_type_ID = 1)
LEFT JOIN `dates` ON (dates.siteID = sites.siteID AND dates.dateType = sites.freeType AND dates.date BETWEEN '' AND '')
LEFT JOIN `sitesLocations` ON (sites.siteID = sitesLocations.siteID)
LEFT JOIN `SitesPartnerPhones` ON (sites.siteID = SitesPartnerPhones.siteID AND SitesPartnerPhones.partnerID = 0)
WHERE sites.if_show = '1' AND Deals.Active = 1 AND (CURDATE() BETWEEN Deals.startDate AND Deals.endDate) AND (dates.A > 0 OR dates.A IS NULL) AND sitesTypes.typeID = 1
GROUP BY sites.siteID
ORDER BY `nw`, `upd_time` DESC /*sites.upd_free DESC*/
LIMIT 0 , 14 |