- 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(8171,8172,8173,8174,8176,8177,8178,8180,8181,8182,8183,8187,8188,8190,8191' 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 07:51:00'
AND dr.end_time > '2024-04-20 07:51:00'
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(8171,8172,8173,8174,8176,8177,8178,8180,8181,8182,8183,8187,8188,8190,8191,8192,8194,8195,8196,8198,8199,8200,8201,8202,8204,8205,8206,8207,8208,8210,8211,8212,8393,8394,8395,8396,8397,8398,31046)