Fixed bug in filtobjects() - extra quote in SQL query