MyBB Community Forums

Full Version: Try searching CKEditor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1054 - Unknown column 'Array' in 'where clause'
SELECT pid, tid FROM posts WHERE pid IN(Array) AND visible=1 ORDER BY dateline DESC


EDIT: Never Mind, after posting, it finds this thread when searching it.
Believe this is the line: (in search.php)
$query = $db->simple_select("posts", "pid, tid", "pid IN(".$db->escape_string($search['posts']).") AND {$p_unapproved_where}", $post_cache_options);

So, $search['posts'] is an array in there. Not sure how though. I don't even know from where $search['posts'] comes from. Don't have time to check the database right now anyway.