select i.country_code,c.countries_id,i.state,i.city from ip2location i left join countries c on i.country_code=c.countries_iso_code_2 where 59771634>=i.ip_num_start and 59771634<=i.ip_num_end and i.country_code!='-' - Table 'booster_antenna.ip2location' doesn't exist