MySQL Error!

Date: [9:53:03] 20.07.2018 +0300

MySQL:
Query:                 select * from ds_konkurs_user where status=1 and type='photo' and id_konkurs= and id_cat=3
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 'and id_cat=3' 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:32
SCRIPT_FILENAME:       /home/host1454370/xn----8sbf4aacfnidabvorljl7f.xn--p1ai/htdocs/www/index.php

Request:
REQUEST_URI:           /konkurs-dlya-zapovednikov-i-natsionalnyh-parkov-3/photo/kopytnye/
QUERY_STRING:          module=konkurs-dlya-zapovednikov-i-natsionalnyh-parkov-3&id=photo&page=kopytnye
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 (http://commoncrawl.org/faq/)
REMOTE_ADDR:           54.162.123.74
REMOTE_PORT:           57844