$favthreads = $db->query_read(" SELECT threadid, title, forumid FROM " . TABLE_PREFIX . "thread WHERE postuserid = 'post.postid' AND forumid NOT IN($mynotin) $order LIMIT $mylimit ");