MYSQL ERROR
Error:Server shutdown in progress
Query:SELECT SQL_CALC_FOUND_ROWS `T1`.*, `T3`.`Key` AS `Key`, `T3`.`Type` AS `Listing_type`, `T3`.`Parent_keys`, `T3`.`Parent_IDs`, `T3`.`Path` AS `Path`, IF( `T1`.`Sub_status`='invisible' OR `T1`.`Sub_status` = 'visible', `T1`.`Main_photo`, IF(`T1`.`Main_photo`='',`T1`.`Main_photo`,CONCAT( SUBSTRING_INDEX(`T1`.`Main_photo`, '.', 1), '_', `T1`.`Sub_status` ,'_it', '.', SUBSTRING_INDEX(`T1`.`Main_photo`, '.', -1)))) AS `Main_photo` ,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_data_formats` AS `TDF_units` ON `TDF_units`.`Key` = SUBSTRING_INDEX(`T1`.`square_feet`, '|', -1) WHERE `T1`.`Status` = 'active' AND `T3`.`Type` = 'listings' AND `T1`.`Sub_status` <> 'invisible' AND `T1`.`land_type` = '1' AND `T1`.`newbuilding_2` = '' AND (ROUND(`T1`.`price`, 2) >= 90001 AND ROUND(`T1`.`price`, 2) <= 120000) ORDER BY `Featured` DESC , SUBSTRING_INDEX(`T1`.`square_feet`, '|', 1)/IF(`TDF_units`.`Rate` IS NULL, 1, `TDF_units`.`Rate`) DESC LIMIT 12, 12
Function:getListings
Class:rlListings
File:/home/nekretnine365/public_html/includes/controllers/listing_type.inc.php (line# 396)