Query: | SELECT SQL_CALC_FOUND_ROWS DISTINCT `T1`.*, `T3`.`Path`, `T3`.`Parent_ID`, `T3`.`Key` AS `Cat_key`, `T3`.`Key`, `T3`.`Type` AS `Listing_type`, `T3`.`Parent_keys`, `T3`.`Parent_IDs`, IF(`T1`.`Date` != `T1`.`HighlightDate` AND `T1`.`HighlightDate` != '0000-00-00 00:00:00', '1', '0') as 'is_highlighted', IF(`T1`.`Featured_date`, '1', '0') `Featured` FROM `fl_listings` AS `T1` LEFT JOIN `fl_categories` AS `T3` ON `T1`.`Category_ID` = `T3`.`ID` LEFT JOIN `fl_accounts` AS `T7` ON `T1`.`Account_ID` = `T7`.`ID` LEFT JOIN `fl_lang_keys` AS `TL` ON `TL`.`Key` = CONCAT('categories+name+',`T3`.`Key`) AND `TL`.`Code` = 'es' WHERE `T1`.`Status` = 'active' AND ((CONCAT_WS(' ', `T1`.`address`, `T1`.`zip`, `T1`.`additional_information`, `T1`.`title`, `T1`.`description_add`, `T1`.`vin`, `T1`.`exterior_color`, `T1`.`interior_color`, `T1`.`motor_type`, `T1`.`engine_make`, `T1`.`engine_model`, `T1`.`hull_material`, `T1`.`boat_name`, `T1`.`electronics`, `T1`.`job_position`, `T1`.`job_description`, `T1`.`about_me`, `T1`.`vacancy_url`, `TL`.`Value`) RLIKE 'Business?') OR (CONCAT_WS(' ', `T1`.`address`, `T1`.`zip`, `T1`.`additional_information`, `T1`.`title`, `T1`.`description_add`, `T1`.`vin`, `T1`.`exterior_color`, `T1`.`interior_color`, `T1`.`motor_type`, `T1`.`engine_make`, `T1`.`engine_model`, `T1`.`hull_material`, `T1`.`boat_name`, `T1`.`electronics`, `T1`.`job_position`, `T1`.`job_description`, `T1`.`about_me`, `T1`.`vacancy_url`, `TL`.`Value`) RLIKE 'for') OR (CONCAT_WS(' ', `T1`.`address`, `T1`.`zip`, `T1`.`additional_information`, `T1`.`title`, `T1`.`description_add`, `T1`.`vin`, `T1`.`exterior_color`, `T1`.`interior_color`, `T1`.`motor_type`, `T1`.`engine_make`, `T1`.`engine_model`, `T1`.`hull_material`, `T1`.`boat_name`, `T1`.`electronics`, `T1`.`job_position`, `T1`.`job_description`, `T1`.`about_me`, `T1`.`vacancy_url`, `TL`.`Value`) RLIKE 'sale') ) GROUP BY `T1`.`ID` ORDER BY `Featured` DESC , `T1`.`Date` DESC LIMIT 0, 30 |