This query feels like you could do it more simply as a join:

SELECT wishlists.*, COUNT(wl_id)
FROM wishlists LEFT JOIN wl_items ON (wl_id = wishlists.id)
WHERE wishlists.id=5;

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top