- 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(9955,9956,10146,10147,25746,25747,25748,25749,25750,25751,33693,33694,5354' 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 08:52:44'
AND dr.end_time > '2024-04-27 08:52:44'
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(9955,9956,10146,10147,25746,25747,25748,25749,25750,25751,33693,33694,53540,56090,56344,56345,56346,56347,56348,56351,62286,62287,62288,62289,62842,62843,63538,63539,63540,63844,63845,63846,63847,63848,63849,66593,66594,66596,66598,66607,66619,68275,68354,68355,68356,68698,68699,68953,68954,68955)