MYSQL ERROR
Error:Table './flynax/fl_accounts' is marked as crashed and last (automatic?) repair failed
Query:SELECT SQL_CALC_FOUND_ROWS `T1`.*, convert(substr(T1.price, 1, instr(T1.price, '|')-1), UNSIGNED) nprice, `T3`.`Path`, `T3`.`Parent_ID`, `T3`.`Key` AS `Cat_key`, `T3`.`Key` AS `Key`, `T3`.`Type` AS `Listing_type`, IF(TIMESTAMPDIFF(HOUR, `T1`.`Featured_date`, NOW()) <= `T4`.`Listing_period` * 24 OR `T4`.`Listing_period` = 0, '1', '0') `Featured`, IF(TIMESTAMPDIFF(HOUR, `T1`.`Date`, NOW()) <= (2 * 24), '1', '0') AS `isNew` FROM `fl_listings` AS `T1` LEFT JOIN `fl_listing_plans` AS `T2` ON `T1`.`Plan_ID` = `T2`.`ID` LEFT JOIN `fl_listing_plans` AS `T4` ON `T1`.`Featured_ID` = `T4`.`ID` LEFT JOIN `fl_categories` AS `T3` ON `T1`.`Category_ID` = `T3`.`ID` LEFT JOIN `fl_accounts` AS `T7` ON `T1`.`Account_ID` = `T7`.`ID` WHERE ( TIMESTAMPDIFF(HOUR, `T1`.`Pay_date`, NOW()) <= `T2`.`Listing_period` * 24 OR `T2`.`Listing_period` = 0 ) AND `T1`.`Status` = 'active' AND `T3`.`Status` = 'active' AND `T7`.`Status` = 'active' AND `T3`.`Type` = 'listings' ORDER BY `T1`.`Date` DESC LIMIT 0, 12
Function:getAll
Class:rlDb
File:/var/www/vhosts/egypthomes.com/httpdocs/includes/classes/rlSearch.class.php (line# 565)