Gdn::SQL Changing Up my Select query [RESOLVED]
I'm trying to do this:
$Sql->select("findDistance(addresslatitude,addresslongitude, 34.11111111 -100.00000001) distance");
findDistance is a function inside of mysql I created, so that works just fine.
The only problem I'm having is, that select string is throwing an error with :
Incorrect parameters in the call to stored function 'findDistance'
And right below that I'm seeing it changes it to this:
'select *, findDistance(addresslatitude, addresslongitude, 34.1111 as 1111, -118.3695699) as distance
The problem is this:
34.1111 as 1111
Anyone have an idea on how to fix this?