Answer the question
In order to leave comments, you need to log in
Why is the query returning only one field?
Have a request
select c.*, count(p.id) as posts
from categories as c
left join post as p
on c.id = p.category
where p.category = c.menu_id
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question