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" Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.