Error in query: select *, ROUND( SQRT( POW((69.1 * (34.02043 - latitude)), 2) + POW((53 * (-117.92611 - longitude)), 2)), 1) AS distance from ian_attractions where longitude between -117.92611 -0.25 and -117.92611 + 0.25 AND latitude between 34.02043 - 0.25 and 34.02043 + 0.25 AND active = 'true' and description is not null and category = 'Golf Courses' group by description order by distance asc Limit -10, 10. 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 '-10, 10' at line 1