- 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(7889,7890,7891,7892,7894,7897,7898,7904,7905,7906,7907,7908,7909,7910,7911' 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:38:04'
AND dr.end_time > '2024-04-27 09:38:04'
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(7889,7890,7891,7892,7894,7897,7898,7904,7905,7906,7907,7908,7909,7910,7911,7912,7914,7915,7916,7917,7918,7919,7920,7921,7922,7923,22472,22473,22474,22475,22476,22478,22479,22480,22481,22483,22484,22485,22486,22487,29145,29146,29147,29148,29150,30179,30942,30943,31139,31140,33123,33124,33125,33128,33130,33132,33135,33136,33137,33138,33139,51109,51685,51691,52496,52497,52498,52499,52500,52501,52502,52503,52504,52505,52506,52507,52508,52509,52510,52511,52512,57508,58512,58513,59734,59736,59738,59739,60086,60087,60088,60090,60092,60093,61679,61680,62966,62967,62968,62977,62978,62979,62980,62981,62990,62991,62994,64092,64093,64318,67450,67456,67459,67460,67461,67462,67463,67464,68377)