SELECT `articles`.`id`, count(user_idea_likes.idea_id) AS likes,
count(subscribed_user_articles.article_id) AS subscribed
FROM `articles`
LEFT JOIN `user_article_likes` ON `user_article_likes`.`article_id` = `articles`.`id`
LEFT JOIN `subscribed_user_articles` ON `subscribed_user_articles`.`article_id` = `articles`.`id`
GROUP BY `articles`.`id`