Created
November 1, 2017 23:49
-
-
Save dynamiccarrots/9b9a045e562f3bcf825decbd39398126 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select *, ` ( 3959 * acos( cos( radians('50`.`866431018898') ) * cos( radians( latitude ) ) * cos( radians( longitude ) - radians('-1`.`4385519869239') ) + sin( radians('50`.`866431018898') ) * sin( radians(latitude) ) ) )` as `distance` from `adverts` where `active` = ? and (`title` like ?) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment