MyBB Community Forums

Full Version: SQL Error: 1064
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
when attempting to enter the /usercp.php?action=subscriptions I get this error:

SQL Error: 1064 - Something is wrong in your syntax obok ',,,,,) AND uid='497'' w linii 3
Query: 
			DELETE 
			FROM mybb_threadsubscriptions 
			 WHERE tid IN (,,,,,,) AND uid='497'

This problem has only one user.
Forum URL?
I thought we fixed this bug... obviously not. In ./usercp.php, line 1248:

$del_subscriptions[] = $subscription['tid'];

change to:

if(!empty($subscription['tid']))
{
	$del_subscriptions[] = $subscription['tid'];
}

Should be OK then.