- 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(5878,16481,16483,16484,16485,16486,16488,16489,16490,24930,24931,24932,249' 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 13:06:20'
AND dr.end_time > '2024-04-27 13:06:20'
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(5878,16481,16483,16484,16485,16486,16488,16489,16490,24930,24931,24932,24933,24934,24935,24936,24937,24938,24939,28069,28070,28071,32488,32491,34965,34969,34970,34971,51621,53638,61066,61067,61447,61448,61641,64175,67396,67397,67398,67399,67400,67401,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144)