1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '°- longitude)* pi()/180))))*180/pi())*60*1.1515) as distance FROM state wher' at line 1

SELECT slno, state_name, url, (((acos(sin((29.1525*pi()/180)) * sin((latitude*pi()/180))+cos((29.1525*pi()/180)) * cos((latitude*pi()/180)) * cos(((75.7292°- longitude)* pi()/180))))*180/pi())*60*1.1515) as distance FROM state where city_level = 3 HAVING distance<20 ORDER BY distance ASC limit 20

[TEP STOP]