fixing UNIX_TIMESTAMP() for mssql

Conflicts:
	lib/db.php