MYSQL ERROR REPORT
- 23/11/2017 00:11:33
---------------------------------------
1064 - 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 c.products_id < 27325 AND p.products_status = 1
ORDE' at line 3

SELECT c.products_id FROM products_to_categories c
LEFT JOIN products as p USING(products_id)
WHERE c.categories_id = AND c.products_id < 27325 AND p.products_status = 1
ORDER BY c.products_id DESC LIMIT 1
---------------------------------------
Server Name : goober.com.ua
Remote Address: 54.158.214.111
Referer :
Requested : /muzhskaya-shapka-o-apikar-0116.html
Trace Back : seomanager.php:214(includearray(1) {; [0]=>; string(41) "product_info.php"; }; ) => product_info.php:35(includearray(1) {; [0]=>; string(58) "includes/modules/product_info.php"; }; ) => includes/modules/product_info.php:82(vam_db_queryarray(1) {; [0]=>; &string(278) "SELECT c.products_id FROM products_to_categories c ; LEFT JOIN products as p USING(products_id) ; WHERE c.categories_id = AND c.products_id < 27325 AND p.products_status = 1 ; ORDER BY c.products_id DESC LIMIT 1"; }; ) => inc/vam_db_query.inc.php:35(vam_db_errorarray(3) {; [0]=>; &string(278) "SELECT c.products_id FROM products_to_categories c ; LEFT JOIN products as p USING(products_id) ; WHERE c.categories_id = AND c.products_id < 27325 AND p.products_status = 1 ; ORDER BY c.products_id DESC LIMIT 1"; [1]=>; &int(1064); [2]=>; &string(226) "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 c.products_id < 27325 AND p.products_status = 1 ; ORDE' at line 3"; }; )
==========================================================================