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 'row FROM cscart_products as products LEFT JOIN cscart_product_descriptions as d' at line 1 (1064)
SELECT a.row FROM (SELECT products.product_id, @r := @r + 1 as row FROM cscart_products as products LEFT JOIN cscart_product_descriptions as descr1 ON descr1.product_id = products.product_id AND descr1.lang_code = 'ro' LEFT JOIN cscart_product_prices as prices ON prices.product_id = products.product_id AND prices.lower_limit = 1 INNER JOIN cscart_products_categories as products_categories ON products_categories.product_id = products.product_id INNER JOIN cscart_categories ON cscart_categories.category_id = products_categories.category_id AND (cscart_categories.usergroup_ids = '' OR FIND_IN_SET(0, cscart_categories.usergroup_ids) OR FIND_IN_SET(1, cscart_categories.usergroup_ids)) AND cscart_categories.status IN ('A', 'H') LEFT JOIN cscart_ult_product_descriptions shared_descr ON shared_descr.product_id = products.product_id AND shared_descr.company_id = 1 AND shared_descr.lang_code = 'ro' LEFT JOIN cscart_supplier_links ON cscart_supplier_links.object_id = products.product_id AND cscart_supplier_links.object_type = 'P' LEFT JOIN cscart_product_popularity as popularity ON popularity.product_id = products.product_id WHERE 1 AND cscart_categories.category_id IN (1040) AND cscart_categories.company_id = 1 AND (products.usergroup_ids = '' OR FIND_IN_SET(0, products.usergroup_ids) OR FIND_IN_SET(1, products.usergroup_ids)) AND products.status IN ('A') AND prices.usergroup_id IN (0, 0, 1) GROUP BY products.product_id ORDER BY descr1.product asc) AS a WHERE a.product_id = 7763
app/Tygh/Database.php, line: 714
| File: | app/Tygh/Database.php |
| Line: | 359 |
| Function: | error |
| File: | app/Tygh/Database.php |
| Line: | 208 |
| Function: | query |
| File: | app/functions/fn.database.php |
| Line: | 66 |
| Function: | getField |
| File: | app/schemas/last_view/frontend.functions.php |
| Line: | 54 |
| Function: | db_get_field |
| File: | app/Tygh/Navigation/LastView/Frontend.php |
| Line: | 140 |
| Function: | fn_lv_get_product_default_navigation |
| File: | app/Tygh/Navigation/LastView/ACommon.php |
| Line: | 100 |
| Function: | _initDefaultViewTools |
| File: | app/functions/fn.control.php |
| Line: | 472 |
| Function: | init |
| File: | index.php |
| Line: | 25 |
| Function: | fn_dispatch |