Mysql Error!

Mysql Error Message: 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 b.id = a.world_id AND c.country_id = b.country_id AND c.langu' at line 17 
Query was: SELECT a.*, a.slug, b.country_id, b.region_id, b.city_id, c.name as country, d.name as region, e.name as city FROM hotelData a, world b, countryTxt c, region d, cityTxt e WHERE a.id = AND b.id = a.world_id AND c.country_id = b.country_id AND c.language_id = 4 AND d.id = b.region_id AND e.city_id = b.city_id AND e.language_id = 4 LIMIT 0, 1
On Site: /de/luxushotels/spezialpakete.html
Referrer:
User Agent: CCBot/2.0 (https://commoncrawl.org/faq/)
Script Name: /routing.php
POST:
Array
(
)
GET:
Array
(
    [lang] => de
    [hid] => 
)