- 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(78,79,83,85,278,281,282,283,284,288,289,3788,3789,6647,6648,6654,6655,6658' 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-20 17:06:34'
AND dr.end_time > '2024-04-20 17:06:34'
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(78,79,83,85,278,281,282,283,284,288,289,3788,3789,6647,6648,6654,6655,6658,6659,6660,6661,6662,6663,6664,25101,25102,25103,25105,25106,25840,26320,28102,28103,28104,28105,28231,28824,28825,31195,32667,32681,32682,32683,42189,42190,50560,51627,51628,51631,51635,51637,51638,51639,51640,51641,51656,51669,51674,53552,53553,54582,54583,54584,54585,54586,54588,54590,54593,54595,54602,54603,54606,54607,55762,55763,55764,55765,59206,59207,59208,59209,60510,61451,61996,64804,64805,65752,65758,65759,66153,66154,66155,66156,67072,67073,67074,67077,67910,68146)