- 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(2244,3005,3008,5513,9486,9487,9489,9490,9491,9492,9493,20804,25931,25932,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 11:27:44'
AND dr.end_time > '2024-04-27 11:27:44'
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(2244,3005,3008,5513,9486,9487,9489,9490,9491,9492,9493,20804,25931,25932,25933,25934,25935,25936,25938,25939,25940,25944,25945,25946,25947,25948,25949,25950,25951,25952,25953,25954,25955,32327,33335,33336,33338,33339,33340,33342,33343,33346,33348,33349,33350,33351,33352,33354,50698,50699,50700,50705,51708,52085,52087,52088,52403,52404,52407,52408,52409,52410,52411,52412,52413,52414,53024,53025,53026,53027,53028,53056,53477,53478,53479,54006,54007,57990,57991,58000,58001,60677,60709,61910,62216,62217,62218,64705,65673,65674,65675,68124,68125,68126,68127,68128,68129,68130,68315,68316,68317,68318,68319,68320,68321,68324,68325,68330,68358,68359,68360)