SELECT COUNT(comments.post_id) AS total,
comments.post_id AS post_id
FROM comments
WHERE (comments.status != 'spam')
AND (comments.status != 'denied' OR (
(
comments.user_id != 0 AND
comments.user_id = 0
) OR (
comments.id IN (0)
)
))
GROUP BY comments.post_id
Array
(
[:visitor_id] => 0
[:status] => spam
)
#0 /home/.nur/bmxposer/amotion.tv/includes/class/SQL.php(221): Query->__construct(Object(SQL), 'SELECT COUNT(co...', Array, false)
#1 /home/.nur/bmxposer/amotion.tv/includes/class/SQL.php(258): SQL->query('SELECT COUNT(__...', Array, false)
#2 /home/.nur/bmxposer/amotion.tv/modules/comments/comments.php(643): SQL->select('comments', Array, Array, NULL, Array, NULL, NULL, 'post_id')
#3 /home/.nur/bmxposer/amotion.tv/includes/class/Trigger.php(119): Comments->post_comment_count_attr(NULL, Object(Post))
#4 /home/.nur/bmxposer/amotion.tv/includes/class/Model.php(37): Trigger->filter(Array, Array)
#5 /home/.nur/bmxposer/amotion.tv/includes/class/Twig/runtime.php(163): Model->__get(NULL, 'Post_comment_co...', Object(Post))
#6 /home/.nur/bmxposer/amotion.tv/includes/caches/twig_57551a336798e27b057deee908f0af2a.cache(47): twig_get_attribute()
#7 /home/.nur/bmxposer/amotion.tv/includes/caches/twig_6976fb9fe1dce9dae247a25cd36b0478.cache(161): __TwigTemplate_57551a336798e27b057deee908f0af2a->block_content('comment_count')
#8 /home/.nur/bmxposer/amotion.tv/includes/class/Twig/api.php(78): __TwigTemplate_6976fb9fe1dce9dae247a25cd36b0478->render(Object(Post), 'comment_count')
#9 /home/.nur/bmxposer/amotion.tv/includes/controller/Main.php(739): Twig_Template->display(Array)
#10 /home/.nur/bmxposer/amotion.tv/includes/controller/Main.php(678): MainController->display(Array)
#11 /home/.nur/bmxposer/amotion.tv/includes/controller/Main.php(413): MainController->display(Array)
#12 /home/.nur/bmxposer/amotion.tv/includes/class/Route.php(107): MainController->view('pages/view', Array, 'Live For Fame')
#13 /home/.nur/bmxposer/amotion.tv/index.php(24): Route->init(Array, Array, 'Live For Fame')
#14 {main}
Log In →
Chyrp 2.1 git © 2009 Alex Suraci