la columna que necesita debe estar dentro de selectRaw, como:
$topsearches = DB::table('searchkeywords')
->selectRaw('query,id,created,count(*) as count')
->havingRaw('count(*) > 3')
->orderBy('created', 'DESC')
->groupBy('query')
->paginate(15);