- $sSQL = 'SELECT * FROM';
- $sSQL .= '(select place_id,parent_place_id,rank_address, rank_search, country_code, geometry';
+ $sSQL = 'SELECT place_id, parent_place_id, rank_address, rank_search FROM';
+ $sSQL .= '(select place_id, parent_place_id, rank_address, rank_search, country_code, geometry';