fix a bug with prepared select statements that return no results
Merge branch 'fix_select_prepared_statement' into thefactory_nexus