Warning: mysqli_errno() expects exactly 1 parameter, 0 given in /home/campanule/www/db_access.php on line 53

Fatal error: Uncaught Exception: . Query was: select count(id) as cnt, latitude, longitude, master_spot_id, pokemon_id from discover_pokemon_nests where master_spot_id = 517 and delete_flg = 0 and created >= '2016-11-02 00:00:00' group by pokemon_id Error number: in /home/campanule/www/db_access.php:54 Stack trace: #0 /home/campanule/www/common.php(163): DB->sql('select count(id...') #1 /home/campanule/www/nest.html(30): get_pokemon_nests('517', '2016-11-02 00:0...') #2 {main} thrown in /home/campanule/www/db_access.php on line 54