Options
$lat = \'25.7742658\'; $lng = \'-80.1936589\'; $miles = 30;
Query
SELECT *, ( 3959 * acos( cos( radians($lat) )
that looks like the correct great circle distance query.
what are you concerned with wrt accuracy?