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 /hosting/www/maxscriptfactory.com/www/includes/class/SQL.php(204): Query->__construct(Object(SQL), 'SELECT COUNT(co...', Array, false)
#1 /hosting/www/maxscriptfactory.com/www/includes/class/SQL.php(241): SQL->query('SELECT COUNT(__...', Array, false)
#2 /hosting/www/maxscriptfactory.com/www/modules/comments/comments.php(643): SQL->select('comments', Array, Array, NULL, Array, NULL, NULL, 'post_id')
#3 [internal function]: Comments->post_comment_count_attr(NULL, Object(Post))
#4 /hosting/www/maxscriptfactory.com/www/includes/class/Trigger.php(119): call_user_func_array(Array, Array)
#5 /hosting/www/maxscriptfactory.com/www/includes/class/Model.php(37): Trigger->filter(NULL, 'Post_comment_co...', Object(Post))
#6 /hosting/www/maxscriptfactory.com/www/includes/class/Twig/runtime.php(162): Model->__get('comment_count')
#7 /hosting/www/maxscriptfactory.com/www/includes/caches/twig_9a03d49621a9353c4c028163b46237c9.cache(30): twig_get_attribute(Object(Post), 'comment_count')
#8 /hosting/www/maxscriptfactory.com/www/includes/class/Twig/api.php(78): __TwigTemplate_9a03d49621a9353c4c028163b46237c9->render(Array)
#9 /hosting/www/maxscriptfactory.com/www/includes/caches/twig_38fc78dcd7fd96fc8bb6c6c5757af3d4.cache(14): Twig_Template->display(Array)
#10 /hosting/www/maxscriptfactory.com/www/includes/caches/twig_c19a24ba4c4f488924cc287729ac8d39.cache(38): __TwigTemplate_38fc78dcd7fd96fc8bb6c6c5757af3d4->block_content(Array)
#11 /hosting/www/maxscriptfactory.com/www/includes/class/Twig/api.php(78): __TwigTemplate_c19a24ba4c4f488924cc287729ac8d39->render(Array)
#12 /hosting/www/maxscriptfactory.com/www/includes/controller/Main.php(735): Twig_Template->display(Array)
#13 /hosting/www/maxscriptfactory.com/www/includes/controller/Main.php(233): MainController->display('pages/index', Array)
#14 [internal function]: MainController->index()
#15 /hosting/www/maxscriptfactory.com/www/includes/class/Route.php(107): call_user_func_array(Array, Array)
#16 /hosting/www/maxscriptfactory.com/www/index.php(22): Route->init()
#17 {main}
Log In →
Chyrp 2.0 © 2009 Alex Suraci