First, I set the Filters to Album View and then select this Magic Node
Code: Select all
Songs with lyrics|SQL filter:Length(Songs.Lyrics) > 0\<Artist>)
This is the resulting messages (first is from ZvezdanD's debug from his modified script):


For comparison, I then set the Filter to Available Tracks and everything then works. This is the message displayed:

To further test I set Filters back to Album View and selected this MN
Code: Select all
Rating, Genre\<rating|statistic:count(all)>\<genre|statistic:count(all)>


Based on this information it appears the SDB.Database.ActiveFilterQuery function is inconsistent. For "Album View" filter it returns full SQL query:
Code: Select all
SELECT Songs.Id FROM Songs
Code: Select all
(Songs.IdMedia in (31,28,29) OR Songs.CacheStatus=1)