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 'OR FIND_IN_SET(, `T3`.`Parent_IDs`) > 0) OR (FIND_IN_SET(, `T1`.`Crossed`) > 0))' at line 1
Query:SELECT SQL_CALC_FOUND_ROWS `T1`.*, `T3`.`Path`, `T3`.`Parent_ID`, `T3`.`Key` AS `Cat_key`, `T3`.`Key`, `T3`.`Type` AS `Listing_type`, `T3`.`Parent_keys`, `T3`.`Parent_IDs`, IF(`T1`.`Date` != `T1`.`HighlightDate` AND `T1`.`HighlightDate` != '0000-00-00 00:00:00', '1', '0') as 'is_highlighted', 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` ,'_en', '.', 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_accounts` AS `T7` ON `T1`.`Account_ID` = `T7`.`ID` WHERE `T1`.`Status` = 'active' AND `T3`.`Type` = 'listings' AND `T1`.`Sub_status` <> 'invisible' AND ((`T1`.`Category_ID` = OR FIND_IN_SET(, `T3`.`Parent_IDs`) > 0) OR (FIND_IN_SET(, `T1`.`Crossed`) > 0)) ORDER BY `Featured` DESC , `Priority_label` DESC , `T1`.`date` DESC LIMIT 0, 15
Function:search
Class:rlSearch
File:/var/www/vhosts/reall.pk/httpdocs/includes/controllers/listing_type.inc.php (line# 205)