New Zenner
- Join Date:
- Sep 2013
- Location:
- Norway
- Posts:
- 3
- Plugin Contributions:
- 0
1109 Unknown table 'p' in field list
I’m using Zen Cart 1.39h and have problems with displaying the specials function. I’m also using a template..
http://masked/index.php?main_page=specials
I’ve enabled logging on MySQL and extracted the query in question from general_log.csv :
SELECT p.products_id, p.products_image, pd.products_name, p.master_categories_id
FROM (products p LEFT JOIN specials s on p.products_id = s.products_id LEFT JOIN products_description pd on p.products_id = pd.products_id )
WHERE p.products_id = s.products_id and p.products_id = pd.products_id and p.products_status = '1'
AND s.status = 1
AND pd.language_id = 1
ORDER BY s.specials_date_added DESC limit 12
When I run this query in phpMyAdmin, it runs perfectly:
I’m not sure which php-file which is in use when this query is executed on the web, but it seems like something with the query within the php-file malfunctions..
Could anyone please help?
Thanks,
Dex