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_9a03d49621a9353c4c028163b46237c9.cache(87): twig_get_attribute()
#7 /home/.nur/bmxposer/amotion.tv/includes/class/Twig/api.php(78): __TwigTemplate_9a03d49621a9353c4c028163b46237c9->render('comment_count')
#8 /home/.nur/bmxposer/amotion.tv/includes/caches/twig_743f3bdd8358d9982d0a60656f1e87cd.cache(14): Twig_Template->display(Object(Post), 'comment_count')
#9 /home/.nur/bmxposer/amotion.tv/includes/caches/twig_c19a24ba4c4f488924cc287729ac8d39.cache(161): __TwigTemplate_743f3bdd8358d9982d0a60656f1e87cd->block_content(Array)
#10 /home/.nur/bmxposer/amotion.tv/includes/class/Twig/api.php(78): __TwigTemplate_c19a24ba4c4f488924cc287729ac8d39->render(Array)
#11 /home/.nur/bmxposer/amotion.tv/includes/controller/Main.php(739): Twig_Template->display(Array)
#12 /home/.nur/bmxposer/amotion.tv/includes/controller/Main.php(678): MainController->display(Array)
#13 /home/.nur/bmxposer/amotion.tv/modules/categorize/categorize.php(174): MainController->display(Array)
#14 /home/.nur/bmxposer/amotion.tv/includes/class/Trigger.php(69): Categorize->main_index('pages/index', Array, '')
#15 /home/.nur/bmxposer/amotion.tv/includes/class/Trigger.php(45): Trigger->call(Array, Array)
#16 /home/.nur/bmxposer/amotion.tv/includes/class/Route.php(102): Trigger->call(Object(MainController))
#17 /home/.nur/bmxposer/amotion.tv/index.php(24): Route->init(Array, Array)
#18 {main}
Log In →
Chyrp 2.1 git © 2009 Alex Suraci