- 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(10092,10093,10094,10095,10098,10099,10100,28261,28262,28263,28264,32410,50' 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-18 23:33:39'
AND dr.end_time > '2024-04-18 23:33:39'
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(10092,10093,10094,10095,10098,10099,10100,28261,28262,28263,28264,32410,50689,53011,53200,53203,53733,53742,53751,53758,53769,53785,53786,53787,55867,55869,55870,57421,57426,57427,61071,61073,61076,61079,63980,63982,63983,63984,63985,63986,63987,63988,63989,63995,64025,64027,65286,65425,65426,65427,65905,66522,66523,66524,66525,66526,66527,66528,66529,66530,66531,66615,66616,67037,68550,68687,68688,68689,68690,68691)