- 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(3282,3284,3293,3294,3296,3304,3306,10355,55089,55090,55091,55093,55094,550' 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 10:39:08'
AND dr.end_time > '2024-04-27 10:39:08'
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(3282,3284,3293,3294,3296,3304,3306,10355,55089,55090,55091,55093,55094,55095,55096,55098,55100,55104,55108,55114,55124,55125,55126,55131,55132,55133,55134,55136,55137,55138,55139,55141,55142,55143,55144,55145,56988,56998,56999,60753)