- 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(6212,6213,6214,6215,6216,6219,6221,6222,6223,6238,6239,6240,6241,6244,6245' 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 14:30:14'
AND dr.end_time > '2024-04-27 14:30:14'
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(6212,6213,6214,6215,6216,6219,6221,6222,6223,6238,6239,6240,6241,6244,6245,6246,6247,6248,6253,6254,6255,6256,6257,6260,6261,6262,6264,6265,6266,25709,26029,26030,26045,26046,26047,26048,26049,26050,26052,26053,26054,26055,26056,26059,26060,31176,31177,54639,54640,54641,54642,54643,56073,56301,56305,56306,56308,57947,57948,59322,59323,59324,59329,59330,59331,59332,59344,59345,59346,59347,59348,59349,59477,59478,59479,59480,59481,59835,61170,61758,62183,62184,62185,63340,63656,63660,66484,66485,66486,66487,66488)