$db->query("DELETE FROM ".X_PREFIX."favorites WHERE IN ($tids)");
$db->query("DELETE FROM ".X_PREFIX."favorites WHERE tid IN ($tids)");