Exception Object
(
    [message:protected] => 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 MATCH(pd.name, pd.description) AGAINST ('HappyModel ES900TX Max 2W' IN NATUR' at line 1
Error No: 1064
SELECT p.product_id, (SELECT AVG(rating) AS total FROM oc_review r1 WHERE r1.product_id = p.product_id AND r1.status = '1' GROUP BY r1.product_id) AS rating, (SELECT price FROM oc_product_discount pd2 WHERE pd2.product_id = p.product_id AND pd2.customer_group_id = '1' AND pd2.quantity = '1' AND ((pd2.date_start = '0000-00-00' OR pd2.date_start < NOW()) AND (pd2.date_end = '0000-00-00' OR pd2.date_end > NOW())) ORDER BY pd2.priority ASC, pd2.price ASC LIMIT 1) AS discount, (SELECT price FROM oc_product_special ps WHERE ps.product_id = p.product_id AND ps.customer_group_id = '1' AND ((ps.date_start = '0000-00-00' OR ps.date_start < NOW()) AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW())) ORDER BY ps.priority ASC, ps.price ASC LIMIT 1) AS special FROM oc_product p LEFT JOIN oc_product_description pd ON (p.product_id = pd.product_id) WHERE pd.language_id = '2' AND p.status = '1' AND ( AND MATCH(pd.name, pd.description) AGAINST ('HappyModel ES900TX Max 2W' IN NATURAL LANGUAGE MODE) OR p.model LIKE '%HappyModel ES900TX Max 2W%' OR LCASE(p.model) = 'happymodel es900tx max 2w') GROUP BY p.product_id ORDER BY (p.price>0) DESC,(p.image>'') DESC,(p.quantity>0) DESC, MATCH(pd.name, pd.description) AGAINST ('HappyModel ES900TX Max 2W' IN NATURAL LANGUAGE MODE) DESC ASC, LCASE(pd.name) ASC LIMIT 0,16 [string:Exception:private] => [code:protected] => 0 [file:protected] => /home/pcsmart/web/shop.pcsmart.ua/public_html/system/library/db/mysqli.php [line:protected] => 48 [trace:Exception:private] => Array ( [0] => Array ( [file] => /home/pcsmart/web/shop.pcsmart.ua/public_html/system/library/db.php [line] => 45 [function] => query [class] => DB\MySQLi [type] => -> ) [1] => Array ( [file] => /home/pcsmart/web/shop.pcsmart.ua/public_html/storage/modification/catalog/model/catalog/product.php [line] => 229 [function] => query [class] => DB [type] => -> ) [2] => Array ( [file] => /home/pcsmart/web/shop.pcsmart.ua/public_html/storage/modification/system/engine/loader.php [line] => 250 [function] => getProducts [class] => ModelCatalogProduct [type] => -> ) [3] => Array ( [file] => /home/pcsmart/web/shop.pcsmart.ua/public_html/system/engine/proxy.php [line] => 47 [function] => {closure} [class] => Loader [type] => -> ) [4] => Array ( [file] => /home/pcsmart/web/shop.pcsmart.ua/public_html/storage/modification/catalog/controller/product/search.php [line] => 269 [function] => __call [class] => Proxy [type] => -> ) [5] => Array ( [file] => /home/pcsmart/web/shop.pcsmart.ua/public_html/storage/modification/system/engine/action.php [line] => 80 [function] => index [class] => ControllerProductSearch [type] => -> ) [6] => Array ( [file] => /home/pcsmart/web/shop.pcsmart.ua/public_html/catalog/controller/startup/router.php [line] => 25 [function] => execute [class] => Action [type] => -> ) [7] => Array ( [file] => /home/pcsmart/web/shop.pcsmart.ua/public_html/storage/modification/system/engine/action.php [line] => 80 [function] => index [class] => ControllerStartupRouter [type] => -> ) [8] => Array ( [file] => /home/pcsmart/web/shop.pcsmart.ua/public_html/system/engine/router.php [line] => 67 [function] => execute [class] => Action [type] => -> ) [9] => Array ( [file] => /home/pcsmart/web/shop.pcsmart.ua/public_html/system/engine/router.php [line] => 56 [function] => execute [class] => Router [type] => -> ) [10] => Array ( [file] => /home/pcsmart/web/shop.pcsmart.ua/public_html/system/framework.php [line] => 169 [function] => dispatch [class] => Router [type] => -> ) [11] => Array ( [file] => /home/pcsmart/web/shop.pcsmart.ua/public_html/system/startup.php [line] => 108 [args] => Array ( [0] => /home/pcsmart/web/shop.pcsmart.ua/public_html/system/framework.php ) [function] => require_once ) [12] => Array ( [file] => /home/pcsmart/web/shop.pcsmart.ua/public_html/index.php [line] => 20 [function] => start ) ) [previous:Exception:private] => )