- 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(26721,26734,26745,26746,26747,26748,26752,26753,26754,26755,26760,26761,26' 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 12:05:21'
AND dr.end_time > '2024-04-27 12:05:21'
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(26721,26734,26745,26746,26747,26748,26752,26753,26754,26755,26760,26761,26762,26763,26764,26768,26775,32458,32459,32460,33255,33563,33564,33565,33571,33572,33573,33574,33575,33576,33578,33579,33580,33581,51182,51183,51184,51185,51186,51187,51188,51189,53825,53837,54148,54149,54150,54529,54530,54531,54532,54533,54534,55738,55739,55740,55741,55742,56101,56892,56893,56894,56895,56896,56897,56898,56899,56900,64743,66374,66375,66376)