you shouldn't touch those valuable php files. you see, shared hosting is very limited and can't handle elgg's load. my best advice to you is to upgrade servers either to a vps or dedicated
You might not like what I say...
Shared hosting is not really suitable for Elgg. If you are lucky, the load on the server will stay below the restrictions defined by the hoster. But it could easily happen that the load gets too high. It not only depends on the number of members of your site but also on the number of members online at the same time and additionally on the plugins used. For example a chat plugin could cause too much load quite easily but others might result in a high load also even if you wouldn't believe this at first.
The query above seems caused by a search on the term "Tischlerei". The search does also look in the profile fields for a match. Someone searching for something seems not an unlikely situation. You could disable the search plugin to avoid such a search to happen again. Still, on a shared server you might get in the same situation with your site causing too much load on the server sooner or later again. My advice: change to a VPS hosting plan.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.