SELECT ST_Distance_sphere(POINT(-3.80986143252453, 40.46287801598222), POINT(o.longitud, o.latitud)), o.*
FROM oficinas o
WHERE 1
ORDER BY ST_Distance_sphere(POINT(-3.80986143252453, 40.46287801598222), POINT(o.longitud, o.latitud))
