Вход для пользователей

не работает с samsredir

Выдает вот что:
2008/02/01 07:28:06| helperHandleRead: unexpected read from url_rewriter #1, 164 bytes 'Error
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 'null).sams' at line 1
'
2008/02/01 07:28:06| helperHandleRead: unexpected read from url_rewriter #4, 164 bytes 'Error
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 'null).sams' at line 1
'
2008/02/01 07:28:06| helperHandleRead: unexpected read from url_rewriter #2, 164 bytes 'Error
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 'null).sams' at line 1
'
2008/02/01 07:28:06| helperHandleRead: unexpected read from url_rewriter #3, 164 bytes 'Error
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 'null).sams' at line 1
'
2008/02/01 07:28:06| helperHandleRead: unexpected read from url_rewriter #5, 164 bytes 'Error
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 'null).sams' at line 1
'
2008/02/01 07:28:06| helperHandleRead: unexpected read from url_rewriter #6, 164 bytes 'Error
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 'null).sams' at line 1
'
2008/02/01 07:28:06| helperHandleRead: unexpected read from url_rewriter #7, 164 bytes 'Error
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 'null).sams' at line 1
'
2008/02/01 07:28:06| WARNING: url_rewriter #1 (FD 12) exited
2008/02/01 07:28:06| WARNING: url_rewriter #4 (FD 15) exited
2008/02/01 07:28:06| WARNING: url_rewriter #2 (FD 13) exited
2008/02/01 07:28:06| WARNING: url_rewriter #3 (FD 14) exited
2008/02/01 07:28:06| Too few url_rewriter processes are running
2008/02/01 07:28:06| storeDirWriteCleanLogs: Starting...
2008/02/01 07:28:06| 65536 entries written so far.
2008/02/01 07:28:06| 131072 entries written so far.
2008/02/01 07:28:06| 196608 entries written so far.
2008/02/01 07:28:06| 262144 entries written so far.
2008/02/01 07:28:06| 327680 entries written so far.
2008/02/01 07:28:06| 393216 entries written so far.
2008/02/01 07:28:06| Finished. Wrote 421052 entries.
2008/02/01 07:28:06| Took 0.1 seconds (3117472.0 entries/sec).
FATAL: The url_rewriter helpers are crashing too rapidly, need help!

mysql-5.0.44

Не соответствует структура базы - испльзуемой версии sams.

Почти та же проблема.

При указании в squid.conf строки
redirect_program /usr/local/bin/samsredir
squid не запускается.

В логах:
(samsredir): MySQL query error: 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 'null).sams' at line 1

SAMS обновил. Скрипт обновления базы MySQL запустил.

Без редиректора все работает.

Как решать?