- 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(42206,51909,51910,51911,51912,51919,51946,51947,51962,51964,51965,51969,51' 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 12:25:08'
AND dr.end_time > '2024-04-27 12:25:08'
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(42206,51909,51910,51911,51912,51919,51946,51947,51962,51964,51965,51969,51970,53230,53294,55324,55924,55925,58048,58049,58609,59619,59633,59634,60413,62461,64020,65258,65259,65260,65701,66327,66328,67145,67146,67147,67157,67158,67159,67160,67162,67163,67164,67165,67166,67167,67168,67169,67170,68158,68159,68167,68168,68169,68170,68171,68557)