- 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(29129,33699,33700,33701,33702,33703,33704,33705,53204,53206,53537,53538,53' 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 11:36:53'
AND dr.end_time > '2024-04-27 11:36:53'
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(29129,33699,33700,33701,33702,33703,33704,33705,53204,53206,53537,53538,53539,54510,54511,54512,54513,54514,57417,57418,58757,58758,58759,58760,58761,58762,58763,58764,58765,58766,63294,63924,64716,64717,64718,64719,64720,64721,64722,66497,66498,66499,66500,66501,66502,66503,66504,66544,66545,66546,66547,66548,66554,66555,66556,66557,68343,68344,68345,68346,68347)