- 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(5890,5891,5892,5894,5896,5897,5899,5900,24974,28188,28190,28191,28192,2819' 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 15:05:25'
AND dr.end_time > '2024-04-27 15:05:25'
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(5890,5891,5892,5894,5896,5897,5899,5900,24974,28188,28190,28191,28192,28193,28194,28195,28196,29744,51496,53181,53463,54153,54571,57367,57486,57487,61061,61062,61063,63503,63504,63506,63507,64104,64105,64321,67013,67014,67015,67016,67017,67036)