Strict Standards: Only variables should be passed by reference in /var/www/videoglobal.ru/current/modules/articles.inc.php on line 24

MySQL Error!

Date: [8:59:23] 24.04.2018 +0200

MySQL:
Query:                 select * from ds_article where parent='18' and status=1 order by date desc, id desc limit -5, 5
mysql_error():         You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-5, 5' at line 1
mysql_errno():         1064
mysql_server_info():   5.5.5-10.1.26-MariaDB-0+deb9u1

Script:
SCRIPT_FILELINE:       /var/www/videoglobal.ru/current/modules/articles.inc.php:48
SCRIPT_FILENAME:       /var/www/videoglobal.ru/current/index.php

Request:
REQUEST_URI:           /articles/svadebnaya-semka/viezdnaya-fotostudiya.html
QUERY_STRING:          module=articles&id=svadebnaya-semka&page=viezdnaya-fotostudiya
HTTP_REFERER:          
HTTP_HOST:             www.videoglobal.ru
REQUEST_METHOD:        GET

Server:
SERVER_SOFTWARE:       Apache/2.4.25 (Debian)
SERVER_PORT:           443
SERVER_NAME:           www.videoglobal.ru

User:
HTTP_USER_AGENT:       CCBot/2.0 (http://commoncrawl.org/faq/)
REMOTE_ADDR:           54.224.100.134
REMOTE_PORT:           38500