Invalid query: SELECT * FROM `geo_state_table` WHERE (`id_state` = ) LIMIT 1