Re: Custom inventory query statement - Need help please
AndyM;
I tried this and here is what came back:
#1052 - Column: 'products_id' in group statement is ambiguous
And here is what the query now looks like:
SELECT CONCAT('http://', products_url) "Product Url", products_name "Product Name", products_description "Product Description", CONCAT( 'http://www.swansoninc.com/images/', products_image ) "Image URL", categories_name "Product Category", products_price "Product Price"
FROM zen_products_description
JOIN zen_products
USING ( products_id )
JOIN zen_products_to_categories
USING ( products_id )
JOIN zen_categories
USING ( categories_id )
JOIN zen_categories_description
USING ( categories_id )
WHERE products_status =1
GROUP BY products_id
ORDER BY products_last_modified DESC
Also since it was never mentioned I am on a server that is running MySQL 4.0.26. Please make sure any post replies refer to MySQL 4, not version 5.
thanks...
0be1
"Give me one hundred preachers who fear nothing but sin and desire nothing but God, and I care not whether they be clergymen or laymen, they alone will shake the gates of Hell and set up the kingdom of Heaven upon Earth." - John Wesley