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 '/180)*SIN(3.14159265359 * lat/180)) + (COS(3.14159265359* /180)*cos(3.141592653' at line 1