In CVideoDatabase::GetMoviesByWhere if only one movie in a set matches the filter then the set is not included (because the count c is not greater than 1), but as long as the set has more one movie in it the movie will still be excluded by the movie query.
(See http://forum.xbmc.org/showthread.php?tid=129610 )
This PR fixes this by also including the filter in the movieSetsWhere string, so that only the movies in the sets included by the sets query are excluded.
GetMoviesByWhere: Don't exclude movies that aren't included in the se…
Thanks for the fix. It turns out that @Montellese has a better fix for this (the above query contains stuff that is not required) here: