MySQL Error!

Date: [18:59:44] 10.12.2018 +0300

MySQL:
Query:                 select * from ds_files where module='photo' and parent in (,6,7,8)
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 '6,7,8)' at line 1
mysql_errno():         1064
mysql_server_info():   5.6.39-83.1

Script:
SCRIPT_FILELINE:       /var/www/krashenn/data/www/krashennyedveri.ru/modules/photo.inc.php:39
SCRIPT_FILENAME:       /var/www/krashenn/data/www/krashennyedveri.ru/index.php

Request:
REQUEST_URI:           /photo/115/
QUERY_STRING:          module=photo&id=115
HTTP_REFERER:          
HTTP_HOST:             www.krashennyedveri.ru
REQUEST_METHOD:        GET

Server:
SERVER_SOFTWARE:       Apache/2.2.15 (CentOS)
SERVER_PORT:           80
SERVER_NAME:           www.krashennyedveri.ru

User:
HTTP_USER_AGENT:       CCBot/2.0 (https://commoncrawl.org/faq/)
REMOTE_ADDR:           54.167.15.6
REMOTE_PORT:           41344