Post by aledmann » Sun Nov 13, 2011 7:32 pm

Hi all PHP gurus! I'm trying to upload a new data feed to Google Base but it keeps saying that there are no items inserted.

When I download the data feed to look at it here's what's in the file:

Code: Select all

Error: 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 'p.product_id ASC ASC' at line 1<br />Error No: 1064<br />SELECT p.product_id, (SELECT AVG(rating) AS total FROM review r1 WHERE r1.product_id = p.product_id AND r1.status = '1' GROUP BY r1.product_id) AS rating FROM product p LEFT JOIN product_description pd ON (p.product_id = pd.product_id) LEFT JOIN product_to_store p2s ON (p.product_id = p2s.product_id) WHERE pd.language_id = '1' AND p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0' GROUP BY p.product_id ORDER BY p.sort_order ASC p.product_id ASC ASC
Can anyone tell me what I'm doing wrong please? Thank you so much in advance!!

:D
Last edited by aledmann on Sat Nov 19, 2011 4:41 am, edited 1 time in total.

User avatar
New member

Posts

Joined
Thu Sep 08, 2011 9:56 pm

Post by uksitebuilder » Tue Nov 15, 2011 6:17 am

Looks like you have edited the catalog/model/catalog/product.php file somehow, revert it back to the default file to fix.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom
Who is online

Users browsing this forum: No registered users and 1 guest