ich habe ein Problem mit dem Script UnlockTickets.pl, jedesmal bei der Ausführung kommt folgede Fehlermeldung:
bash-3.00# /opt/otrs/bin/UnlockTickets.pl --timeout UnlockTickets.pl <Revision 1.19> - unlock tickets
Copyright (c) 2001-2004 Martin Edenhofer <martin@otrs.org>
Unlock old tickets:
DBD::mysql::st execute failed: 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 ') AND st.ticket_lock_id NOT IN ( 1, 3 )' at line 1 at /opt/otrs/Kernel/System/DB.pm line 440, <DATA> line 283.
ERROR: OTRS-UnlockTickets-10 Perl: 5.8.5 OS: linux Time: Wed Aug 16 11:54:11 2006
Message: 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 ') AND st.ticket_lock_id NOT IN ( 1, 3 )' at line 1, SQL: 'SELECT st.tn, st.ticket_answered, st.id, st.timeout, sq.unlock_timeout FROM ticket st, queue sq WHERE st.queue_id = sq.id AND st.ticket_answered != 1 AND sq.unlock_timeout != 0 AND st.ticket_state_id IN ( ) AND st.ticket_lock_id NOT IN ( 1, 3 ) '
Traceback (3049):
Module: /opt/otrs/bin/UnlockTickets.pl (v1.19) Line: 127
DBD::mysql::st fetchrow_array failed: fetch() without execute() at /opt/otrs/Kernel/System/DB.pm line 477, <DATA> line 283.
ich habe schon selber ein bisschen gesucht, aber da ich weder SQL noch Perl ausreichend kenne, komme ich nicht mehr weiter.
Ich kann den Fehler auf diesen SQL Ausdruck reduzieren "AND st.ticket_state_id IN ( )"
Lasse ich den Ausdruck weg, dann bekomme ich keine Fehlermeldung mehr. Allerdings ist mir nicht klar, was dieses Statement soll? Laut Srcript wird dort ein Wert eingetragen, aber ich habe noch keine "gelockten" Tickets, da Neuinstallation!

Ich wäre froh, wenn mir jemand bei dem Fehler helfen könnte.
Unser System: CentOS 4.3; MySql 4.1.20; OTRS 2.04