MYSQL ERROR
Error:User 'empadmin' has exceeded the 'max_questions' resource (current value: 300000)
Query:SELECT SQL_CALC_FOUND_ROWS DISTINCT IF (FIND_IN_SET('453', `T1`.`Crossed`) > 0, 1, 0) AS `Crossed_listing`, `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` ,'_es', '.', SUBSTRING_INDEX(`T1`.`Main_photo`, '.', -1)))) AS `Main_photo` ,IF(TIMESTAMPDIFF(HOUR, `T1`.`Featured_date`, NOW()) <= `T4`.`Listing_period` * 24 OR `T4`.`Listing_period` = 0, '1', '0') `Featured` 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`.`Category_ID` = '453' OR (FIND_IN_SET('453', `T1`.`Crossed`) > 0 AND `T2`.`Cross` > 0 ) OR FIND_IN_SET('453', `T3`.`Parent_IDs`) > 0 )AND `T1`.`Status` = 'active' AND `T3`.`Status` = 'active' AND `T7`.`Status` = 'active' AND `T1`.`Sub_status` <> 'invisible' AND `T1`.`towns` = 'Pueblo_Guaynabo' AND `T1`.`b_address` = 'SF. D. Roosvelt, Esq. Avenida San Patricio' AND `T1`.`website` = 'www.sanpatricio.com' AND `T1`.`b_zip` = '00968' AND `T1`.`title` = 'San Patricio Plaza' GROUP BY `T1`.`ID` ORDER BY `Featured` DESC , `ID` DESC LIMIT 0, 16
Function:getAll
Class:rlDb
File:/hermes/bosnacweb04/bosnacweb04bc/b2318/glo.mdprmaster/emp/includes/classes/rlListings.class.php (line# 812)