Query: | SELECT `T1`.*, `T2`.`Message`, `T2`.`Date` AS `Date_message`, `T3`.`Path` AS `Path`, `T3`.`Key` AS `Key`, `T3`.`Type` AS `Listing_type`, `T3`.`Parent_keys`, IF(`TS`.`session_id` <> '', 1, 0) AS `online_status` FROM `fl_listing_statuses` AS `T2` LEFT JOIN `fl_listings` AS `T1` ON `T1`.`ID` = `T2`.`Listing_ID` LEFT JOIN `fl_categories` AS `T3` ON `T1`.`Category_ID` = `T3`.`ID` LEFT JOIN `fl_sessions` AS `TS` ON `T1`.`Account_ID` = `TS`.`account_ID` WHERE `T1`.`Status` = 'active' AND `T1`.`country` = 'location_france' AND `T1`.`country_level1` = 'location_france_provence_alpes_cote_d_azur' AND `T1`.`country_level2` = 'location_france_provence_alpes_cote_d_azur_nice' GROUP BY `T1`.`ID` ORDER BY `T2`.`Date` DESC LIMIT 10 |