Get nearby places using SQL

set @my_lat=24.967448; 
set @my_lng=121.541341;
set @dist=10;

select *,
    acos(cos(@my_lat * (PI()/180)) *
     cos(@my_lng * (PI()/180)) *
     cos(dest.latitude * (PI()/180)) *
     cos(dest.longitude * (PI()/180))
     +
     cos(@my_lat * (PI()/180)) *
     sin(@my_lng * (PI()/180)) *
     cos(dest.latitude * (PI()/180)) *
     sin(dest.longitude * (PI()/180))
     +
     sin(@my_lat * (PI()/180)) *
     sin(dest.latitude * (PI()/180))
    ) * 3959 as Dist
from place as dest
having Dist < @dist
order by Dist;