You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '/180)*sin(pi()*lat/180))+(cos(pi()*/180)*cos(pi()*lat/180)*cos(pi()*lon/180-pi()' at line 10