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 ')<2 and abs(ldd.longitude-)<2 and u.configuration like '%s:8:"usertype";s:' at line 9