An exception occurred in shop's script

  • Error type: MySQL Error
  • Source, line: Parser::tws_shop_search[1515]
  • 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(239824,252245,59237,176949,176950,176954,176955,176951,150229,150177,59...' 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 IN('kDefault', 'kCertificate', 'kEBook', 'kComplect', 'kMarkdown')
                                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 < '2025-11-29 10:27:19'
                                AND dr.end_time > '2025-11-29 10:27:19'
                                AND (s.price - (s.price / 100 * dr.disc_proc)) < s.price
                                AND s.no_visible = 0
                                AND s.kind_key IN('kDefault', 'kCertificate', 'kEBook', 'kComplect', 'kMarkdown')
                        ) AS tblWHERE id IN(239824,252245,59237,176949,176950,176954,176955,176951,150229,150177,59217,256091,256099,257300,256578,263226,263227,263403,131907,266644,267783,267782,269447,269448,271466,271675,271677,271678,271679,271680,271681,272010,266041,284167,284271,288868,289479,289491,289497,289500,292386,292577,59224,270561,270562,294847,270565,270758,305303,307186,306814,271676,271674,310091,125068,125069,125070,125071,195451,300658,316545)