Bug tracker

Problem moderating forums (fix completed in vcs)

When I delete a post with the MCP from one forum, it shows this error code:
Code: Select all
General Error
SQL ERROR [ mysql ]

You have an error in your SQL syntax near ') GROUP BY forum_id, topic_approved' at line 3 [1064]

SQL

SELECT forum_id, topic_approved, COUNT(topic_id) AS forum_topics FROM phpbb_topics WHERE forum_id IN () GROUP BY forum_id, topic_approved

BACKTRACE


FILE: includes/db/mysql.php
LINE: 115
CALL: dbal_mysql->sql_error('SELECT forum_id, topic_approved, COUNT(topic_id) AS forum_topics...')

FILE: includes/functions_admin.php
LINE: 1229
CALL: dbal_mysql->sql_query('SELECT forum_id, topic_approved, COUNT(topic_id) AS forum_topics...')

FILE: includes/functions_admin.php
LINE: 530
CALL: sync('forum', 'forum_id', Array(1), true)

FILE: includes/mcp/mcp_main.php
LINE: 554
CALL: delete_topics('topic_id', Array(1), true)

FILE: includes/mcp/mcp_main.php
LINE: 111
CALL: mcp_delete_topic(Array(1))

FILE: includes/functions_module.php
LINE: 336
CALL: mcp_main->main('main', 'forum_view')

FILE: mcp.php
LINE: 183
CALL: p_master->load_active()

Can anybody help??

Comments / History

No comments have been made and there are no history entries.

Ticket details