Update class.customsearch.plugin.php

Hooked SearchModel, inserted lots of debug code
Problem with SearchSql when joining results to discussions/comments