MYSQL ERROR
Error:Disk full (/var/tmp/#sql_358_0); waiting for someone to free some space...
Query:SELECT DISTINCT ( IF(`T1`.`Category_ID` = '2420', 3, 0) + IF( FIND_IN_SET('2420', `T1`.`Crossed`) > 0, 2, 0 ) + IF( FIND_IN_SET('2420', `T3`.`Parent_IDs`) > 0, 1, 0 ) + IF( FIND_IN_SET('2403', `T3`.`Parent_IDs`) > 0, 1, 0 ) ) as `relevance`, `T1`.*, `T3`.`Path` AS `Path`, `T3`.`Key` AS `Key`, `T3`.`Type` AS `Listing_type`, 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` ,'_SR', '.', SUBSTRING_INDEX(`T1`.`Main_photo`, '.', -1)))) AS `Main_photo` ,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`.`ID` != '7307' AND (`T1`.`Category_ID` = '2420' OR (FIND_IN_SET('2420', `T1`.`Crossed`) > 0 ) OR FIND_IN_SET('2420', `T3`.`Parent_IDs`) > 0 OR FIND_IN_SET('2403', `T3`.`Parent_IDs`) > 0 ) AND `T1`.`Sub_status` <> 'invisible' ORDER BY `relevance` DESC LIMIT 3
Function:getAll
Class:rlDatabase
File:/var/www/vhosts/autopijaca.com/httpdocs/plugins/similarListings/rlSimilarListings.class.php (line# 210)