Correct SQL statement so POI IDs are unique