corrected osm_errors query