- 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(2473,7095,7096,7099,7100,7101,7102,7111,7112,7113,7114,7115,7116,7117,7119' 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 09:32:29'
AND dr.end_time > '2024-04-27 09:32:29'
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(2473,7095,7096,7099,7100,7101,7102,7111,7112,7113,7114,7115,7116,7117,7119,7120,7121,7122,7129,7130,7131,7132,7133,7134,7135,7136,7139,7140,7143,7144,7145,7146,7307,7308,7309,7310,7311,11184,25965,27139,27140,31114,31116,31117,31118,31119,31120,31121,31122,31123,31125,31126,31127,31128,31129,31130,33015,33016,33017,33018,51676,57058,57059,57060,57061,57062)