MYSQL ERROR
Error:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'OR FIND_IN_SET(, `T3`.`Parent_IDs`) > 0) OR (FIND_IN_SET(, `T1`.`Crossed`) > ...' at line 1
Query:SELECT `T1`.*, `T3`.`Key` AS `Key`, `T3`.`Type` AS `Listing_type`, `T3`.`Parent_keys`, `T3`.`Parent_IDs`, `T3`.`Path` AS `Path`, IF(`T1`.`Date` != `T1`.`HighlightDate` AND `T1`.`HighlightDate` != '0000-00-00 00:00:00', '1', '0') as 'is_highlighted', IF(`T1`.`Featured_date` <> '0000-00-00 00:00:00', '1', '0') `Featured` FROM `fl_listings` AS `T1` LEFT JOIN `fl_categories` AS `T3` ON `T1`.`Category_ID` = `T3`.`ID` LEFT JOIN `fl_currency_rate` AS `CURCONV` ON SUBSTRING_INDEX(REPLACE(`T1`.`price`, 'currency_', ''), '|', -1) = `CURCONV`.`Key` AND `CURCONV`.`Status` = 'active' WHERE `T1`.`Status` = 'active' AND `T3`.`Type` = 'motors' AND ((`T1`.`Category_ID` = OR FIND_IN_SET(, `T3`.`Parent_IDs`) > 0) OR (FIND_IN_SET(, `T1`.`Crossed`) > 0)) AND `T1`.`condition` = 'home' AND `T1`.`shc_auction_status` <> 'closed' AND `T1`.`body_style` = 'body_styles_offroad' ORDER BY `Featured` DESC , `Pay_date` DESC LIMIT 0, 24
Function:getListings
Class:rlListings
File:/var/www/dev.flynax.asia/assemhybri/plugins/fieldBoundBoxes/listings_by_field.inc.php (line# 144)