SELECT SQL_CALC_FOUND_ROWS IF (FIND_IN_SET('122', `T1`.`Crossed`) > 0, 1, 0) AS `Crossed_listing`, `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 `{db_prefix}listings` AS `T1` LEFT JOIN `{db_prefix}categories` AS `T3` ON `T1`.`Category_ID` = `T3`.`ID` WHERE `T1`.`Status` = 'active' AND (`T1`.`Category_ID` = '122' OR (FIND_IN_SET('122', `T1`.`Crossed`) > 0) ) AND `T1`.`eyes` = 'Eye_color_brown' AND `T1`.`public_hair` = '3' AND `T1`.`breast_size` = '7' AND `T1`.`drink` = '3' AND `T1`.`sexuality` = 'sexuality_Transsexual' AND `T1`.`dick_size` = '3' AND ((`T1`.`Category_ID` = 122 OR FIND_IN_SET(122, `T3`.`Parent_IDs`) > 0) OR (FIND_IN_SET(122, `T1`.`Crossed`) > 0)) AND `T1`.`Sub_status` <> 'invisible' ORDER BY `Featured_date` DESC , `T1`.`date` DESC LIMIT 0, 33