- 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(6258,6259,54394,54395,54396,54397,54399,54400,54401,59372,59950,61695,6172' 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:35:04'
AND dr.end_time > '2024-04-27 09:35:04'
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(6258,6259,54394,54395,54396,54397,54399,54400,54401,59372,59950,61695,61724,65123,65124,65125,65126,65127,65128,65129,65130,65131,65132,65133,65145,65146,65147,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65164,65165,65166,67082,67083,67812,67813,67814,67815,67816,67817,67818,67819,67820,67823,67824,67825,67826,67827,67828)