MYSQL QUERY ERROR REPORT
- 24/07/2014 11:07:57
---------------------------------------
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 '' at line 1

select p.products_id from products p, products_to_categories ptc where p.products_status = '1' and p.products_id = ptc.products_id and ptc.categories_id =
---------------------------------------
Server Name : www.pcwisemalta.com
Remote Address: 54.196.167.69
Referer :
Requested : /shop/product_info.php?products_id=1889
Trace Back : /home1/pcwisema/public_html/shop/product_info.php:611(requirearray(1) {; [0]=>; string(64) "/home1/pcwisema/public_html/shop/includes/application_bottom.php"; }; ) => /home1/pcwisema/public_html/shop/includes/application_bottom.php:17(includearray(1) {; [0]=>; string(80) "/home1/pcwisema/public_html/shop/includes/modules/sts_inc/sts_display_output.php"; }; ) => /home1/pcwisema/public_html/shop/includes/modules/sts_inc/sts_display_output.php:21(includearray(1) {; [0]=>; string(74) "/home1/pcwisema/public_html/shop/includes/modules/sts_inc/product_info.php"; }; ) => /home1/pcwisema/public_html/shop/includes/modules/sts_inc/product_info.php:439(includearray(1) {; [0]=>; string(68) "/home1/pcwisema/public_html/shop/includes/products_next_previous.php"; }; ) => /home1/pcwisema/public_html/shop/includes/products_next_previous.php:40(tep_db_queryarray(1) {; [0]=>; &string(156) "select p.products_id from products p, products_to_categories ptc where p.products_status = '1' and p.products_id = ptc.products_id and ptc.categories_id = "; }; ) => /home1/pcwisema/public_html/shop/includes/functions/database.php:148(tep_db_errorarray(3) {; [0]=>; &string(156) "select p.products_id from products p, products_to_categories ptc where p.products_status = '1' and p.products_id = ptc.products_id and ptc.categories_id = "; [1]=>; &int(1064); [2]=>; &string(146) "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 '' at line 1"; }; )
==========================================================================