This commit is contained in:
Jean-Christian Paul Denis 2023-04-23 23:33:54 +02:00
parent b3f9dd1bce
commit 97b7362842
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -38,7 +38,7 @@ class Utils
->from($sql->as(dcCore::app()->prefix . dcBlog::POST_TABLE_NAME, 'P')) ->from($sql->as(dcCore::app()->prefix . dcBlog::POST_TABLE_NAME, 'P'))
->columns([ ->columns([
$sql->count('*', 'count'), $sql->count('*', 'count'),
'U.user_id' 'U.user_id',
]) ])
->join( ->join(
(new JoinStatement()) (new JoinStatement())
@ -120,7 +120,7 @@ class Utils
->from($sql->as(dcCore::app()->prefix . dcBlog::COMMENT_TABLE_NAME, 'C')) ->from($sql->as(dcCore::app()->prefix . dcBlog::COMMENT_TABLE_NAME, 'C'))
->columns([ ->columns([
$sql->count('*', 'count'), $sql->count('*', 'count'),
'comment_email' 'comment_email',
]) ])
->where('blog_id = ' . $sql->quote(dcCore::app()->blog->id)) ->where('blog_id = ' . $sql->quote(dcCore::app()->blog->id))
->and('P.post_id = C.post_id') ->and('P.post_id = C.post_id')