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(22956,22957,22958,22960,26283,51368,51369,51371,51372,51373,51381,51953,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 14:38:13'
                                AND dr.end_time > '2024-04-27 14:38:13'
                                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(22956,22957,22958,22960,26283,51368,51369,51371,51372,51373,51381,51953,53419,53426,55322,61769,64206,64207,64324,65225,65226,65227,65228,65229,65230,65231,65232,66316,66317,67125,67126,67127,67128,67129,67130,67131,67132,67133,67134,67135,67136,67137,67139,67141,67142,67143,67144,67152,67153,67155,67156)