Technically this belongs in a MySQL forum but because it is zen cart related I'm hoping to find answers here....
I load my cart using an easy populate feed. More recently I have begun incorporating automated feeds.
Easy populate does not load images for categories. I am attempting to write a query that will select ONE image from one product in each category.
Here is what I have so far:
SELECT categories_id, products_image
from zen_products join zen_products_to_categories on
zen_products.products_id = zen_products_to_categories.products_id
order by categories_id
The problem is it selects all images for each category. How can I make it select one image per category?



