MYSQL ERROR
Error:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `T1`.`ID` != AND `T1`.`bundesland` LIKE ''' at line 1
Query:SELECT `T1`.ID AS ID, `T1`.Title AS Title, `T1`.bruttomiete AS bruttomiete, `T1`.kaufpreis AS kaufpreis, `T1`.Main_photo AS Main_photo, `T1`.gemeinde AS gemeinde, `T1`.city AS city, `T1`.kurztitel AS kurztitel, `T1`.b_zip AS b_zip 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 `T1`.`Main_Photo` != '' AND `T1`.`Category_ID` = AND `T1`.`ID` != AND `T1`.`bundesland` LIKE ''
Function:getAll
Class:rlDb
File:/www/htdocs/w00f5a9f/dir_at/includes/controllers/listing_details.inc.php (line# 151)