- Error type:
MySQL Error
- Source, line:
Parser::tws_shop_search[1515]
- 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(174223,174224,177045,191187,195673,195442,229702,229711,229708,231476,2...' 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 IN('kDefault', 'kCertificate', 'kEBook', 'kComplect', 'kMarkdown')
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 < '2025-11-29 11:02:28'
AND dr.end_time > '2025-11-29 11:02:28'
AND (s.price - (s.price / 100 * dr.disc_proc)) < s.price
AND s.no_visible = 0
AND s.kind_key IN('kDefault', 'kCertificate', 'kEBook', 'kComplect', 'kMarkdown')
) AS tblWHERE id IN(174223,174224,177045,191187,195673,195442,229702,229711,229708,231476,229295,236411,236413,236538,231437,243854,244135,41703,245875,245880,193748,194414,245862,245864,245865,245873,245882,256817,255373,267828,269565,273375,273224,90149,92692,274470,280725,281438,266462,296137,292906,270977,303516,303527,305912,309732,153227,309980,310071,310105,269557,316288)