Fatal error: Uncaught Exception: 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 ' (6366*acos(cos(radians(44.848600))*cos(radians(`lat`))*cos(radians(`lon`) -radi' at line 1 query: SELECT SQL_CALC_FOUND_ROWS , (6366*acos(cos(radians(44.848600))*cos(radians(`lat`))*cos(radians(`lon`) -radians(4.298940))+sin(radians(44.848600))*sin(radians(`lat`)))) AS distance FROM users u WHERE (6366*acos(cos(radians(44.848600))*cos(radians(`lat`))*cos(radians(`lon`) -radians(4.298940))+sin(radians(44.848600))*sin(radians(`lat`)))) <= 20 AND u.status < 98 AND u.ville != "" AND u.code_postal != "" ORDER BY a.updated DESC, u.time_cnx DESC, u.picture DESC, distance ASC LIMIT 10 in /home/conapt_maminou/www.maminou.com/underground/includes/mysqli/MysqliDb.php:1819
Stack trace:
#0 /home/conapt_maminou/www.maminou.com/underground/includes/mysqli/MysqliDb.php(1427): MysqliDb->_prepareQuery()
#1 /home/conapt_maminou/www.maminou.com/underground/includes/mysqli in /home/conapt_maminou/www.maminou.com/underground/includes/mysqli/MysqliDb.php on line 1819