Fixing Call to undefined method DBAPI::freeResult()

https://github.com/modxcms/AjaxSearch/commit/cd0092afadbff6e9c5a9af3e52e1a3239ecacfcb