SELECTCOUNT(*) FROM (SELECTu.id,u.nickname,TRIM(CONCAT(u.name_first,' ',u.name_last)) ASname,c.text,c.reply_to,p.title,p.urlFROMblog_post_commentscINNER JOINuser_usersuONc.author_id=u.idINNER JOINblog_postspONc.post_id=p.idWHERE (c.author_id=?) AND (c.approved=1) ORDER BYc.datedesc) tmp
SELECTCOUNT(*)
FROM
(
SELECTu.id,u.nickname,TRIM(
CONCAT(u.name_first,' ',u.name_last)
) ASname,c.text,c.reply_to,p.title,p.urlFROMblog_post_commentscINNER JOINuser_usersuONc.author_id=u.idINNER JOINblog_postspONc.post_id=p.idWHERE
(c.author_id=?)
AND (c.approved=1)
ORDER BYc.datedesc
) tmp
SELECTCOUNT(*) FROM (SELECTu.id,u.nickname,TRIM(CONCAT(u.name_first,' ',u.name_last)) ASname,c.text,c.reply_to,p.title,p.urlFROMblog_post_commentscINNER JOINuser_usersuONc.author_id=u.idINNER JOINblog_postspONc.post_id=p.idWHERE (c.author_id=2) AND (c.approved=1) ORDER BYc.datedesc) tmp;