Hello.
A need help to make some query, but my brain seems to be asleep...
Table1 - category:
id name
Table2 - items:
id parent name
How can i get all categories + 5 items (not more) of EACH category?
Something like
SELECT a.*, b.* FROM category a
LEFT JOIN items b ON b.parent = a.id AND b.id IN (SELECT id FROM items WHERE parent = a.id LIMIT 5)
but it ofcourse not working...
Thanks in advance.