$ 0 0 by Luis de Vasconcelos. You're not using a MS SQL Server database, are you?If you are, what $CFG->dbtype driver are you using? SQLSRV or MSSQL?