Query failed

File: /home/g4e/www/green4ever-kunstgras.nl/public_html/php/classes/frontend.php
Line: 128
Class: frontend
Function: load
Object: load
Error: (1064) 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 fl.`status_id` = 1' at line 23
query:
/*
SELECT l.`language_id`,l.`language`
FROM `sys_frontend_language` fl
INNER JOIN `sys_language` l ON fl.`language_id` = l.`language_id`
WHERE fl.`frontend_id` IN (6,30)
AND fl.`status_id` = 1

SELECT l.`language_id`,l.`language`
FROM `sys_frontend_language` fl
INNER JOIN `sys_language` l ON fl.`language_id` = l.`language_id`
WHERE fl.`frontend_id` IN (,)
AND fl.`status_id` = 1
SELECT l.`language_id`,l.`language`
FROM `sys_frontend_language` fl
INNER JOIN `sys_language` l ON fl.`language_id` = l.`language_id`
WHERE fl.`frontend_id` =
AND fl.`status_id` = 1
*/
SELECT l.`language_id`,l.`language`
FROM `sys_frontend_language` fl
INNER JOIN `sys_language` l ON fl.`language_id` = l.`language_id`
WHERE fl.`frontend_id` =
AND fl.`status_id` = 1

Query failed

File: /home/g4e/www/green4ever-kunstgras.nl/public_html/php/handlers/session.php
Line: 193
Class: session_handler
Function: write
Object: write
Error: (1064) 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 ' , , , "54.211.207.116", "Other", "Other", "0' at line 16
query:
INSERT INTO `his_session` (
`session_id`,
`user_id`,
`reload`,
`frontend_id`,
`language_id`,
`ip`,
`os`,
`browser`,
`browser_version`,
`http_user_agent`,
`date_created`
)
VALUES (
"rs3cq0rq8uaj21avtmvgf2qsp2",
,
,
,
,
"54.211.207.116",
"Other",
"Other",
"0",
"CCBot/2.0 (http://commoncrawl.org/faq/)",
NOW( )
);