Fix SQL query for articles+notes so series filtering will work