- 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(2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2392,2393,2394,2396,2397' 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 10:02:37'
AND dr.end_time > '2024-04-27 10:02:37'
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(2379,2380,2381,2382,2383,2384,2385,2386,2387,2388,2392,2393,2394,2396,2397,31183,31184,31185,31186,57063,57064,57065,57066,57067,57068,57069,57070,57071,57072,57073,57074,57075,57076,57077,57078,57079,57080,57081,57877,57879,57880,57881,57882,57884,57885,57886,57887,57888,57889,57890,57891,57892,63080,63081,63082,63083,63089,63090,63091,63092,63093,63106,63127,63128,63129,63130,63131,63132,63133,63144,63145,63146,63147,63148,63149)