SQL-DATABASE ERROR

Database error in pd Script: Invalid SQL: select countries.name as country, countries.code, cityByCountry.name as city, cityByCountry.lat, cityByCountry.lng from ip4_54 inner join countries on ip4_54.country = countries.id inner join cityByCountry on ip4_54.city = cityByCountry.city where (b='159') and (c='158')
mysql error: Table 'nupepasql2.ip4_54' doesn't exist
mysql error number: 1146
Date: 20.01.2017 @ 10:44
Script: /
Referer: