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 ';amp;amp;amp;amp;amp;amp;amp;amp;gt;I<...' at line 1
Query:SELECT SQL_CALC_FOUND_ROWS DISTINCT `T1`.*, `T3`.`Path`, `T3`.`Parent_ID`, `T3`.`Key` AS `Cat_key`, `T3`.`Key`, `T3`.`Type` AS `Listing_type`, `T3`.`Parent_keys`, 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` LEFT JOIN `fl_lang_keys` AS `TL` ON `TL`.`Key` = CONCAT('categories+name+',`T3`.`Key`) AND `TL`.`Code` = 'en' WHERE `T1`.`Status` = 'active' AND ((CONCAT_WS(' ', `T1`.`address`, `T1`.`zip`, `T1`.`title`, `T1`.`description_add`, `T1`.`ref_number`, `T1`.`teacher_name`, `T1`.`teacher_last_name`, `T1`.`short_description`, `T1`.`experience`, `T1`.`website`, `T1`.`availability`, `T1`.`price_description`, `T1`.`price_group_description`, `T1`.`course_email`, `T1`.`facebook`, `T1`.`twitter`, `T1`.`linkedin`, `T1`.`googleplus`, `TL`.`Value`) RLIKE '&amp;amp;amp;amp;amp;amp;amp;amp;quot;&amp;amp;amp;amp;amp;amp;amp;amp;gt;\\'&amp;amp;amp;amp;amp;amp;amp;amp;gt;I&amp;amp;amp;amp;amp;amp;amp;amp;lt;i&amp;amp;amp;amp;amp;amp;amp;amp;gt;I&amp;amp;amp;amp;amp;amp;amp;amp;lt;svg/onloa?') ) AND `T1`.`Sub_status` <> 'invisible' ORDER BY `Featured` DESC , FIELD(`T1`.`Plan_ID`, 4, 38, 1, 26) , `T1`.`Date` DESC LIMIT 0, 20
Function:getAll
Class:rlDatabase
File:/home/gotoclas/public_html/includes/classes/rlSearch.class.php (line# 524)