Don't know why, but i can confirm that if I duplicate that particular line in my code on the new_products page I get that same issue and the same error log
Code:
[30-Apr-2015 21:47:16] PHP Fatal error: 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 'from znc_products p, znc_products_description pd
where p.products_id = pd.produc' at line 3 :: select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name,
p.products_date_added, p.products_price, p.products_type, p.master_categories_id ,pd.products_description from znc_products p, znc_products_description pd
from znc_products p, znc_products_description pd
where p.products_id = pd.products_id
and pd.language_id = '1'
and p.products_status = 1 order by rand()
and p.products_id in (1, 2, 3) in /path to queryfactory thingie
If I remove the duplicated line as below
$new_products_query = "select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name,
p.products_date_added, p.products_price, p.products_type, p.master_categories_id ,pd.products_description
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
where p.products_id = pd.products_id
and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
and p.products_status = 1 order by rand()
and p.products_id in (" . $list_of_products . ")";
my page show like this (which i assume is correct?)
I get new product appearing below the listing and no error message
http://www.grumpykiwi.com//index.php...=index&cPath=1
Bookmarks