- Error type:
MySQL Error
- Source, line:
Parser::tws_shop_topic[1289]
- Error message:
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'id IN(9749,9750,9751,24362,24363,24364,24365,24366,24891,24892,24893,24894,24895' at line 23
SELECT DISTINCT id
FROM (
SELECT s.id
FROM ms_store s, ms_topic_store ts
WHERE s.no_visible=0
AND s.kind_key = 'kDefault'
AND s.price2 > s.price
AND s.price > 0
AND ts.store_id = s.id
UNION ALL
SELECT s.id
FROM ms_store s
JOIN ms_topic_store ts ON s.id = ts.store_id
JOIN ms_disc_group dg ON s.disc_group_id = dg.id
JOIN ms_disc_rate dr ON dr.group_id = dg.id
WHERE dr.kind_key = 'kOrder'
AND dr.from_sum = 0
AND dr.begin_time < '2024-04-27 14:36:51'
AND dr.end_time > '2024-04-27 14:36:51'
AND (s.price - (s.price / 100 * dr.disc_proc)) < s.price
AND s.no_visible = 0
AND s.kind_key = 'kDefault'
) AS tblWHERE id IN(9749,9750,9751,24362,24363,24364,24365,24366,24891,24892,24893,24894,24895,24896,24897,24898,24899,24900,24901,24902,24903,24905,24906,24907,25119,25120,28245,28246,28248,31064,32432,33601,33602,33603,33604,33605,33606,33607,55901,55902,59080,61646,61647,61648,61649,61650,62442,62443,62444,62445,62446,62447,62448,62449,62508,62949,62950,62951,63589,63927,63928,63929,64347,64348,64730,64731,64732,64733,64734,64735,64736,65849,68692,68693,68694,68695,68946,68947,68948,68949,68950)