- 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(6722,6723,6724,6725,6726,6727,6728,6729,6730,6731,6732,6733,6734,6735,5273' 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 11:48:03'
AND dr.end_time > '2024-04-27 11:48:03'
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(6722,6723,6724,6725,6726,6727,6728,6729,6730,6731,6732,6733,6734,6735,52739,52740,52741,52742,52743,52744,52745,52746,52747,52750,52751,54574,54575,54576,54577,54578,54579,54580,54581,56310,56311,56312,56313,56314,56315,56316,56317,57949,58898,60587,60588,60591,60592,60593,61526,61527,61528,61529,61905,61906,61907)