You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-2,7' at line 19
SELECT
_posts.ip as IP
, DATE_FORMAT(_posts.datetime, "%d.%m.%Y %H:%i:%s") as Datetime
, _posts.object_id as ObjectID
, _posts.record_id as RecordID
, _posts.visits as Visits
,_users.name as User
,_objects.go as Go
FROM
_posts
LEFT JOIN
_objects ON _objects.id=_posts.object_id
LEFT JOIN
_users ON _users.id=_posts.user_id
WHERE
_posts.lang_id=2 AND _objects.ajax=1
ORDER BY
_posts.datetime DESC
LIMIT -2,7