- 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(2401,2402,2403,2404,2405,2406,2407,2408,16642,16643,51687,51688,51689,5188' 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:08:01'
AND dr.end_time > '2024-04-27 09:08:01'
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(2401,2402,2403,2404,2405,2406,2407,2408,16642,16643,51687,51688,51689,51881,57015,57016,57084,57085,57086,57087,57088,57089,57504,57506,57843,57844,57845,57846,57847,57849,57850,62969,62971,62983,62984,62997,64033,64034,64035,64036,64037)