change query to get feedid then use that to solve odd bug and speed up queries