Warning: mysqli_query() expects parameter 3 to be integer, object given in /home/redebcn/www/app/chat/on_off.php on line 6

Warning: mysqli_error() expects exactly 1 parameter, 0 given in /home/redebcn/www/app/chat/on_off.php on line 6
Erro na query: SELECT ip, DATE_FORMAT(time, '%H') as date from on_off_admin ORDER BY time DESC LIMIT 1.