- 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(6175,6180,6185,6189,6193,6197,6198,6199,6200,6201,6206,25908,25909,25910,2' 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:31:58'
AND dr.end_time > '2024-04-27 09:31:58'
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(6175,6180,6185,6189,6193,6197,6198,6199,6200,6201,6206,25908,25909,25910,25911,25912,25913,25914,25915,25916,25917,25918,25919,25920,25921,25922,25923,25927,25928,25929,25930,33641,33642,33643,33644,33645,33646,33647,33648,33649,33650,33651,33652,33653,33654,33655,33656,33657,33658,33659,33660,33661,33662,33663,33664,33665,52711,52712,52715,52716,52717,52718,52721,52722,52723,52724,52725,52726,52727,52728,52729,52730,52731,52732,53142,53486,53487,53488,53489,54158,54159,54172,54173,58916,58917,58918,58919,60615,60616,60639,60649,60711,60712,60967,60968,60969,60970,60971,60972,60973,61887,61888,61889,61890,62189,62190,62191)