Fatal error: Uncaught exception 'Exception' with message 'Not unique table/alias: 'CP' query: SELECT P_variant.variantID, P_val.picture, P_val.productID, P_val.price_surplus, P_val.default, P_variant.name name_var, P_opt.optionID optionID, P_opt.name opt_name FROM SS_products_opt_val_variants as P_variant INNER JOIN SS_categories C on P.categoryID=C.categoryID LEFT JOIN SS_category_product CP on P.productID=CP.productID INNER JOIN SS_product_options_values as P_val on P_val.variantID=P_variant.variantID INNER JOIN SS_product_options as P_opt on P_val.optionID=P_opt.optionID INNER JOIN SS_products P on P.productID=P_val.productID LEFT JOIN SS_category_product CP on P.productID=CP.productID WHERE P.enabled = ? AND C.enabled = ? AND (P.categoryID =? or CP.categoryID=?) AND (P.categoryID =? or CP.categoryID=?) AND P_opt.filtr = ? GROUP BY P_variant.variantID ORDER BY P_opt.sort_order ASC, P_variant.sort_order ASC ' in /home/u280113/santehvid.ru/www/core/class/MysqliDb.php:1996 Stack trace: #0 /home/u280113/santehvid.ru/ in /home/u280113/santehvid.ru/www/core/class/MysqliDb.php on line 1996