MySQL Error!

Date: [7:09:12] 19.08.2018 +0300

MySQL:
Query:                 select kc.* from ds_konkurs_cat as kc left join ds_konkurs_cat_link as kcl on kcl.cat=kc.id where kcl.type = '1' and kcl.konkurs=
mysql_error():         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 '' at line 1
mysql_errno():         1064
mysql_server_info():   5.7.18-15-log

Script:
SCRIPT_FILELINE:       /home/host1454370/xn----8sbf4aacfnidabvorljl7f.xn--p1ai/htdocs/www/modules/konkurs.inc.php:72
SCRIPT_FILENAME:       /home/host1454370/xn----8sbf4aacfnidabvorljl7f.xn--p1ai/htdocs/www/index.php

Request:
REQUEST_URI:           /konkurs-dlya-zapovednikov-i-natsionalnyh-parkov-3/photo/
QUERY_STRING:          module=konkurs-dlya-zapovednikov-i-natsionalnyh-parkov-3&id=photo
HTTP_REFERER:          
HTTP_HOST:             www.xn----8sbf4aacfnidabvorljl7f.xn--p1ai
REQUEST_METHOD:        GET

Server:
SERVER_SOFTWARE:       Apache/2.2.33-dev (Unix) mod_ssl/2.2.33-dev OpenSSL/1.0.1e-fips Phusion_Passenger/5.1.12 PHP/5.4.45 mod_wsgi/4.5.2 Python/2.7.5
SERVER_PORT:           80
SERVER_NAME:           www.xn----8sbf4aacfnidabvorljl7f.xn--p1ai

User:
HTTP_USER_AGENT:       CCBot/2.0 (https://commoncrawl.org/faq/)
REMOTE_ADDR:           54.80.140.29
REMOTE_PORT:           57592