I have been trying to run this SQL Query from last evening, but i am not able to execute the command. Here is the SQL Syntax:
SELECT * , ACOS( SIN( RADIANS( 'lat' )) * SIN( RADIANS( 37.387138 )) +
COS( RADIANS( 'lat' )) * COS( RADIANS( 37.387138 )) * COS( RADIANS( 'lng' )
- RADIANS( -122.083237 )) ) * 6380 AS distance
FROM 'restaurants' WHERE distance < 10 ORDER BY distance
I am getting this error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds
to your MariaDB server version for the right
syntax to use near 'FROM 'restaurants' WHERE distance < 10' at line 1
Any advise? thank you