|
@@ -91,7 +91,7 @@
|
|
|
select sum(count) sum
|
|
|
from (
|
|
|
select
|
|
|
- a.user_id, count (1) count
|
|
|
+ a.user_id, COUNT(1) AS count
|
|
|
from community_article a
|
|
|
left join community_like b
|
|
|
on a.id = b.article_id
|
|
@@ -101,7 +101,7 @@
|
|
|
GROUP BY a.user_id
|
|
|
union ALL
|
|
|
select
|
|
|
- a.user_id, count (1) count
|
|
|
+ a.user_id, COUNT(1) AS count
|
|
|
from
|
|
|
community_article_comment a
|
|
|
left join community_comment_like b
|
|
@@ -112,7 +112,7 @@
|
|
|
group by a.user_id
|
|
|
union all
|
|
|
select
|
|
|
- b.user_id, count (1) count
|
|
|
+ b.user_id, COUNT(1) AS count
|
|
|
from
|
|
|
community_article_comment a
|
|
|
left join community_comment_reply b on a.id = b.comment_id
|