select * from sys_user_location where sqrt(
(
(('109.110296678266'-Longitude)*PI()*12656*cos((('21.4713962785714'+Latitude)/2)*PI()/180)/180)
*
(('109.110296678266'-Longitude)*PI()*12656*cos ((('21.4713962785714'+Latitude)/2)*PI()/180)/180)
)
+
(
(('21.4713962785714'-Latitude)*PI()*12656/180)
*
(('21.4713962785714'-Latitude)*PI()*12656/180)
)
)<50000
15分钟内的附件的人
select distinct(user_name),longitude,latitude,phone,begin_time from sys_user_location
where sqrt(
(
(('109.110296678266'-Longitude)*PI()*12656*cos((('21.4713962785714'+Latitude)/2)*PI()/180)/180)
*
(('109.110296678266'-Longitude)*PI()*12656*cos ((('21.4713962785714'+Latitude)/2)*PI()/180)/180)
)
+
(
(('21.4713962785714'-Latitude)*PI()*12656/180)
*
(('21.4713962785714'-Latitude)*PI()*12656/180)
)
)<5000 AND now()-begin_time <900