An exception occurred in shop's script

  • 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(25091,25092,25093,25094,25095,25096,25097,25098,28225,28882,28883,28884,53' 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 15:46:29'
                                AND dr.end_time > '2024-04-27 15:46:29'
                                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(25091,25092,25093,25094,25095,25096,25097,25098,28225,28882,28883,28884,53684,53685,53686,53687,54436,55897,56867,56868,58749,58750,58751,58752,58753,63873,63874,63875,63877,63878,63879,63880,63881,63884,63885,63886,64167,64168,64169,64170,64171,64172,64173,64863,64864,64866,64867,65049,66011,66012,66013,66014,66015,66016,66017,66018,66019,66020,66565,66566,66567,66568,67045,68667,68668)