scarhand Posted October 7, 2009 Share Posted October 7, 2009 This query: select * from apps where LAT_LNG_DISTANCE(lat, lng, $lat, $lng) < range * 1609 is throwing the error "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 'range * 1609' at line 1" Link to comment https://forums.phpfreaks.com/topic/176773-select-from-apps-where-lat_lng_distancelat-lng-lat-lng-range-1609/ Share on other sites More sharing options...
fenway Posted October 13, 2009 Share Posted October 13, 2009 What's the actual query? Show us some table structures, and by the looks of it, some SP code. Link to comment https://forums.phpfreaks.com/topic/176773-select-from-apps-where-lat_lng_distancelat-lng-lat-lng-range-1609/#findComment-936331 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.