So I have this query:
SELECT
t1.password
FROM Session AS t1
INNER JOIN Locations AS t2 ON
t2.id = t1.location_id AND
SQRT( POWER( CONVERT(t2.longitude,float(10)) - 132.456, 2) +
POWER( CONVERT(t2.latitude,float(10)) - 132.456, 2) ) < 100
WHERE t1.end_distribution = 0 AND t1.end_session = 0
and I get this:
1064 - 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 'float(10)) - 132.456, 2) + POWER( CONVERT(t2.latitude,float(10)) - 132.456, 2) )' at line 13
CONVERT(expression, type); you've got the parameters flip-flopped (reference).float(10)isn't a valid conversion type?