- 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(3841,10696,10697,10698,10699,10706,10711,10715,10718,10719,10722,16675,166' 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-25 03:31:48'
AND dr.end_time > '2024-04-25 03:31:48'
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(3841,10696,10697,10698,10699,10706,10711,10715,10718,10719,10722,16675,16676,16679,16681,16682,16684,16685,24581,24585,24589,24590,24612,24613,24614,24615,24616,24618,24619,24620,24621,24622,24623,24625,24639,24649,24650,24651,24652,24653,24655,24656,24662,24663,24664,24665,24677,24705,24706,24707,24708,24709,24710,24711,24712,24713,24714,24715,24716,24717,24718,24719,24720,24721,24722,24723,24724,24725,24726,25618,25619,25620,32544,32545,32546,32547,32549,32559,32560,32561,32562,32563,32564,32565,32566,32567,55671,55673,58897,59079,61006,61007,61159,61836,63417,63418,63419,63420,65657,65756,65757,66099,66100,66101,67371,67372,67373,67374,67375,67377,67378,67379,67380,67381,68216,68217,68546)