Notice: Undefined variable: empresa_traslado in /usr/share/nginx/html/systras_sistema/inc/chat/sql.php on line 8

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 'GROUP BY users.id' at line 3' in /usr/share/nginx/html/systras_sistema/includes/functions.php:239 Stack trace: #0 /usr/share/nginx/html/systras_sistema/includes/functions.php(239): PDOStatement->execute() #1 /usr/share/nginx/html/systras_sistema/inc/chat/sql.php(8): Database->select('SELECT users.no...', true) #2 /usr/share/nginx/html/systras_sistema/inc/chat.php(1): include('/usr/share/ngin...') #3 /usr/share/nginx/html/systras_sistema/index.php(203): include('/usr/share/ngin...') #4 {main} thrown in /usr/share/nginx/html/systras_sistema/includes/functions.php on line 239