- 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(5514,5515,5516,5517,5518,5519,5520,5557,26133,26134,32701,54180,54181,5418' 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:54:47'
AND dr.end_time > '2024-04-27 08:54:47'
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(5514,5515,5516,5517,5518,5519,5520,5557,26133,26134,32701,54180,54181,54182,55283,57904,58069,59923,63796,63797,63798,63799,63800,63801,64248,64249,64250,64265,64266,64267,64268,64269,64270,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,65328,65329,65330,65331,65332,65333,65846,65886,66069,66070,66071,66997,66998,68632,68633,68634,68635,68636,68637)