SELECT *, GEODIST(0.907488, 104.50721, latitude, longitude, 'in=deg') AS distance
FROM indexmnkl
HAVING distance < 50000
ORDER BY distance ASC
LIMIT 100
Fatal error: Uncaught mysqli_sql_exception: table indexmnkl: parse error: geodist() arguments can not be string in /home/w/01mk/_____/f.php:210
Stack trace:
#0 /home/w/01mk/_____/f.php(210): mysqli->query('\r\n SELECT *,...')
#1 /home/w/01mk/o/single.php(22): near_restaurant(0.907488, 104.50721, 100, 50000)
#2 /home/w/01mk/index.php(9): require_once('/home/w/01mk/o/...')
#3 {main}
thrown in /home/w/01mk/_____/f.php on line 210