SelectFetch should be lessthan or equal

Also added a variable to assist debugging for SelectSingle