MYSQL ERROR
Error:Disk full (/var/tmp/#sql_358_0); waiting for someone to free some space...
Query:SELECT SQL_CALC_FOUND_ROWS IF (FIND_IN_SET('1495', `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`, 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` LEFT JOIN `fl_data_formats` AS `TDF_unit` ON `TDF_unit`.`Key` = SUBSTRING_INDEX(`T1`.`mileage`, '|', -1) LEFT JOIN `fl_accounts` AS `T7` ON `T1`.`Account_ID` = `T7`.`ID` WHERE `T1`.`Status` = 'active' AND (`T1`.`Category_ID` = '1495' OR (FIND_IN_SET('1495', `T1`.`Crossed`) > 0) OR FIND_IN_SET('1495', `T3`.`Parent_IDs`) > 0 ) AND `T1`.`transmission` = '1' AND `T7`.`Type` = 'dealer' AND ((`T1`.`Category_ID` = 1495 OR FIND_IN_SET(1495, `T3`.`Parent_IDs`) > 0) OR (FIND_IN_SET(1495, `T1`.`Crossed`) > 0)) AND `T1`.`Sub_status` <> 'invisible' ORDER BY `Featured` DESC , SUBSTRING_INDEX(`T1`.`mileage`, '|', 1)/IF(`TDF_unit`.`Rate` IS NULL, 1, `TDF_unit`.`Rate`) DESC LIMIT 0, 28
Function:getAll
Class:rlDatabase
File:/var/www/vhosts/autopijaca.com/httpdocs/includes/classes/rlListings.class.php (line# 719)