set query limit to "<", not "<=" -- wasn't causing a problem
but didn't do what was expected.