MYSQL ERROR
Error:Lost connection to MySQL server during query
Query:SELECT SQL_CALC_FOUND_ROWS IF (FIND_IN_SET('18', `T1`.`Crossed`) > 0, 1, 0) AS `Crossed_listing`, `T1`.*, `T3`.`Path` AS `Path`, `T3`.`Key` AS `Key`, `T3`.`Type` AS `Listing_type`, `T3`.`Parent_keys`, `T3`.`Parent_IDs`, 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` ,'_en', '.', SUBSTRING_INDEX(`T1`.`Main_photo`, '.', -1)))) AS `Main_photo` ,IF( `T1`.`Sub_status`='invisible' OR `T1`.`Sub_status` = 'visible', `T1`.`Main_photo_x2`, IF(`T1`.`Main_photo_x2`='',`T1`.`Main_photo_x2`,CONCAT( SUBSTRING_INDEX(`T1`.`Main_photo_x2`, '.', 1), '_', `T1`.`Sub_status` ,'_en', '.', SUBSTRING_INDEX(`T1`.`Main_photo_x2`, '.', -1)))) AS `Main_photo_x2` ,IF(`T1`.`Featured_date`, '1', '0') `Featured` FROM `fl_listings` AS `T1` LEFT JOIN `fl_categories` AS `T3` ON `T1`.`Category_ID` = `T3`.`ID` WHERE `T1`.`Status` = 'active' AND (`T1`.`Category_ID` = '18' OR (FIND_IN_SET('18', `T1`.`Crossed`) > 0) OR FIND_IN_SET('18', `T3`.`Parent_IDs`) > 0 ) AND `T1`.`price` = '0-4500000' AND ((`T1`.`Category_ID` = 18 OR FIND_IN_SET(18, `T3`.`Parent_IDs`) > 0) OR (FIND_IN_SET(18, `T1`.`Crossed`) > 0)) AND `T1`.`Sub_status` <> 'invisible' ORDER BY `Featured` DESC , `T1`.`date` DESC LIMIT 0, 12
Function:getListings
Class:rlListings
File:/home/w2slasve/public_html/includes/controllers/listing_type.inc.php (line# 400)