- 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(56544,56634,56635,56639,56642,58125,60904,61138,63325,63468,63489,64258,64' 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 14:41:29'
AND dr.end_time > '2024-04-27 14:41:29'
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(56544,56634,56635,56639,56642,58125,60904,61138,63325,63468,63489,64258,64259,64260,64261,64275,64282,64285,64286,64288,64289,64291,64292,64293,64294,64295,64296,64297,65001,65002,65003,65004,65005,65007,65008,65010,65011,65012,65013,65017,65018,65019,65021,65022,65023,65051,65052,65053,65067,65068,65069,65070,65071,65072,65073,65074,65075,65076,65077,65078,65079,65080,65081,65082,65083,65084,65085,65086,65087,65088,65089,65090,65091,65092,65095,65096,65097,65098,65099,65105,65108,65109,65111,65113,65114,65116,65117,65118,68213)