5 - Out of memory (Needed 1438032 bytes)
select t.id, t.name, COUNT(p2t.products_id) as cnt from tags t, products_to_tags p2t, products p where p.products_id=p2t.products_id and p.products_status=1 and t.id=p2t.tags_id GROUP BY t.id ORDER BY cnt DESC LIMIT 25;
[TEP STOP]
|