Hi there,

We have OTRS 2.4.5 + ITSM 1.3.2 working good but checking the AdminLog, lots
of "You have an error in your SQL syntax" show up, they're the following,
any help on how to avoid them is much appreciated!

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
sq.group_id IN (1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 10, 11, 2'
at line 1, SQL: 'SELECT DISTINCT st.id, st.tn, st.until_time FROM ticket st,
queue sq WHERE sq.id = st.queue_id AND st.ticket_state_id IN ( ) AND
sq.group_id IN (1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 10, 11, 23,
24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
43, 44, 45, 46) AND st.until_time >= 1259450139 ORDER BY st.until_time ASC
LIMIT 25'
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
sq.group_id IN (1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 10, 11, 2'
at line 1, SQL: 'SELECT DISTINCT count(*) FROM ticket st, queue sq ,
ticket_watcher tw WHERE sq.id = st.queue_id AND st.id = tw.ticket_id AND
st.ticket_state_id IN ( ) AND sq.group_id IN (1, 1, 2, 2, 3, 3, 4, 4, 5, 5,
6, 6, 7, 7, 8, 8, 10, 11, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46) AND tw.user_id IN (2) AND
st.until_time <= 1259450978 LIMIT 10000'
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.responsible_user_id IN (2) AND sq.group_id IN (1, 1, 2, 2, 3, 3, 4, 4,'
at line 1, SQL: 'SELECT DISTINCT count(*) FROM ticket st, queue sq WHERE
sq.id = st.queue_id AND st.ticket_state_id IN ( ) AND st.responsible_user_id
IN (2) AND sq.group_id IN (1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8,
10, 11, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
40, 41, 42, 43, 44, 45, 46) AND st.until_time <= 1259450978 LIMIT 10000'
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.queue_id IN (3, 4) AND sq.group_id IN (1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6'
at line 1, SQL: 'SELECT DISTINCT count(*) FROM ticket st, queue sq WHERE
sq.id = st.queue_id AND st.ticket_state_id IN ( ) AND st.queue_id IN (3, 4)
AND sq.group_id IN (1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 10, 11,
23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
42, 43, 44, 45, 46) AND st.until_time <= 1259450978 LIMIT 10000'
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 IN (2) AND st.user_id IN (2) AND sq.group_id IN (1, 1, '
at line 1, SQL: 'SELECT DISTINCT count(*) FROM ticket st, queue sq WHERE
sq.id = st.queue_id AND st.ticket_state_id IN ( ) AND st.ticket_lock_id IN
(2) AND st.user_id IN (2) AND sq.group_id IN (1, 1, 2, 2, 3, 3, 4, 4, 5, 5,
6, 6, 7, 7, 8, 8, 10, 11, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46) AND st.until_time <=
1259450978 LIMIT 10000'
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
sq.group_id IN (1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 10, 11, 2'
at line 1, SQL: 'SELECT DISTINCT count(*) FROM ticket st, queue sq WHERE
sq.id = st.queue_id AND st.ticket_state_id IN ( ) AND sq.group_id IN (1, 1,
2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 10, 11, 23, 24, 25, 26, 27, 28,
29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46) AND
st.until_time <= 1259450978 LIMIT 10000'
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 IN (2) AND st.user_id IN (2) AND sq.group_id IN (1, 1, '
at line 1, SQL: 'SELECT DISTINCT st.id, st.tn, st.until_time FROM ticket st,
queue sq WHERE sq.id = st.queue_id AND st.ticket_state_id IN ( ) AND
st.ticket_lock_id IN (2) AND st.user_id IN (2) AND sq.group_id IN (1, 1, 2,
2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 10, 11, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46) AND
st.until_time <= 1259450978 ORDER BY st.until_time DESC LIMIT 10'

Thanks,

Leonardo Certuche
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Reply via email to