ข้อผิดพลาดที่ฐานข้อมูลเกิดขึ้น

Error Number: 1064

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 's Democratic Republic%') AND `status` = 99 ORDER BY RAND() LIMIT 3' at line 4

SELECT bibid, IF(title IS NULL or title = '', '* Untitled ', title) as title, pubyear, topic, IFNULL(num, 0) as visit, author FROM (`biblio`) LEFT JOIN `counter_research_all` ON `bibid` = `record_id` WHERE ((bibid <> ('10350') AND bibid IN ('3','6','7','192','187','1814','448','107','182','195','1815','210','215','181','299','464','212','331','336','344','425','499','542','629','650','711','792','798','804','4698','851','872','125','130','1295','923','931','932','933','988','1016','1032','1037','1038','1068','1070','1161','1206','1219','1226','1267','1268','1269','1270','1271','1272','1274','1284','1297','1298','1300','1320','1341','1358','1361','1363','1364','1366','1367','1434','1451','1464','1488','1496','1504','1561','1571','1604','1606','4799','1641','1653','1654','1669','1687','1724','1732','1733','1736','1737','1743','1744','1745','1748','1750','1751','1770','1777','1780','1827','1829','1832','1833','1834','1835','1840','1858','1859','1867','1869','1889','4843','1908','2072','2075','2076','2090','2091','2093','2136','2138','2139','2157','2158','2179','2180','2186','2188','2209','2210','2216','2217','2221','2231','2249','2284','2285','2290','2291','2303','2305','2306','2341','2367','2406','2407','2454','2488','2492','2496','2499','2503','2504','2506','2507','2528','2530','2531','2546','2547','2548','2549','2560','2602','2603','2604','2608','2618','2621','2625','2642','2643','2644','2645','2668','6554','2706','2710','2721','2729','2745','2746','2747','2748','2756','2757','2763','2764','2795','2796','2797','2798','2799','2800','2835','2843','2852','2859','2860','2872','2873','2874','2875','2900','2901','2903','2904','2905','2924','2978','2979','2981','2982','2983','2985','2986','3008','3009','3010','3011','3012','3013','3021','3024','3054','3080','3082','3083','3084','3085','3091','3101','3102','3103','3104','3105','3106','3115','3140','3153','3154','3165','3649','3167','3172','3177','3219','3220','3221','3222','3224','3227','3262','3263','3264','3265','3279','3285','3347','3348','3349','3350','3383','3398','3399','3400','3401','3402','3403','3441','3447','3459','3485','3504','3505','3506','3518','3519','3520','3624','3625','3677','3765','3766','3767','3768','3769','3770','3799','3810','3813','3819','3820','3821','3822','3867','3868','3869','3870','3880','3882','3883','3884','3895','3944','3964','4095','4034','4147','4154','4155','4534','4533','4257','4258','4259','4260','4261','4265','4267','4269','4270','4272','4273','4357','4358','4359','4360','4361','4366','4372','4426','4427','4428','4429','4431','4432','4444','4455','4470','4474','4475','4476','4477','4504','4535','4536','4537','4550','4552','4554','4556','4557','4558','4559','4560','4562','4564','4565','4574','4596','4599','4601','4602','4603','4604','4607','4608','4622','4623','4624','4626','4652','4629','4669','4670','4671','4668','4801','4802','4803','4804','4805','4806','4808','4809','4824','4825','4826','4827','4828','4829','4873','4880','4918','4910','4916','4947','4949','4992','4995','5016','5035','5049','5051','5052','5053','5054','5055','5056','5057','5091','5098','5099','5101','5102','5103','5104','5105','5106','5107','5121','5135','5139','5174','5175','5177','5178','5202','5206','5207','5218','5237','5251','5255','5280','5294','5322','5325','5326','5372','5374','5375','5403','5413','5419','5420','5422','5423','5455','5456','5457','5458','5459','5460','5465','5468','5470','5471','5549','5580','5600','5602','5628','5634','5635','5647','5651','5652','5666','5668','5687','5704','5730','5737','5754','5765','5767','5812','5813','5814','5815','5847','5848','5849','5862','5868','5870','5872','5873','5874','5875','5877','5878','5879','5983','5984','5993','5989','5990','5994','6007','6010','6011','6040','6042','6043','6053','6054','6055','6056','6057','6059','6078','6061','6062','6063','6064','6071','6100','6152','6153','6154','6155','6156','6157','6158','6174','6178','6181','6203','6211','6236','6237','6240','6241','6242','6257','6263','6311','6340','6344','6345','6359','6375','6382','6384','6386','6400','6405','6411','6475','6480','6481','6504','6508','6512','6570','6577','6667','6669','6672','6675','6676','6677','6709','6727','6728','6729','6730','6762','6766','6920','6921','6924','6926','6934','6935','6937','6939','6966','6989','6990','6991','6992','6993','6994','6995','7017','7018','7019','7020','7022','7024','7025','7026','7046','7074','7097','7098','7099','7100','7101','7102','7103','7104','7113','7424','7115','7116','7117','7118','7119','7120','7121','7122','7123','6988','7150','7159','7160','7161','7162','7163','7164','7165','7166','7168','7169','7197','7225','7234','7235','7236','7237','7239','7240','7241','7242','7243','7244','7265','7275','7276','7277','7280','7282','7284','7285','7286','7287','7288','7289','8470','7283','7305','7306','7317','7318','7383','7384','7385','7386','7388','7389','7391','7411','7412','7415','7416','7421','7438','7455','7459','7473','7481','7484','7488','7495','7497','7498','7503','7504','7508','7506','7510','7512','7528','7533','7558','7559','7560','7563','7564','7566','7589','7590','7608','7609','7621','7622','7623','7624','7629','7631','7644','7658','7663','7681','7255','7706','7707','7719','7729','7730','7747','7750','7885','7773','7774','7775','7776','7777','7779','7780','7781','7783','7784','7786','7787','7789','7790','7791','7792','7862','7863','7864','7865','7889','7890','7891','7892','7893','7894','7901','7913','7957','7959','7960','7961','7964','7966','7968','7969','7970','7971','7972','7973','7975','8046','8048','8055','8070','8095','8126','8134','8135','8136','8138','8139','8140','8141','8143','8144','8146','8147','8149','8151','8152','8153','8160','8161','8166','8170','8174','8180','8184','8186','8189','8240','8241','8243','8257','8289','8333','8334','8335','8362','8417','8418','8419','8420','8404','8406','8435','8421','8426','8427','8429','8430','8431','8432','8433','8456','8457','8474','8475','8478','8479','8483','8485','8486','8487','8489','8490','8491','8493','8509','8527','8534','8535','8538','8558','8559','9477','8561','8562','8563','8564','8565','8566','8568','8569','8571','8572','8574','8575','8577','8605','8607','8609','8610','8611','8612','8614','9478','8617','8619','8620','8621','8622','8624','8625','8626','8627','8629','8630','8631','8632','8633','8635','8662','8664','8692','8695','8696','8697','8698','8700','8701','8702','8703','8707','8784','8812','8813','8814','8815','8817','8818','8819','8823','8824','8825','8826','8828','8830','8860','8861','8862','8864','8865','8867','8871','8872','8875','8877','8897','8904','8905','8906','8907','8908','8911','8912','8916','8917','8918','8921','8922','8923','8929','8936','8937','8939','8941','8943','8944','8975','8976','8979','8981','8982','8983','8984','8985','8987','8988','8990','8991','8992','8994','9008','9019','9022','9023','9024','9025','9026','9027','9029','9030','9031','9032','9033','9034','9035','9037','9038','9039','9076','9077','9079','9080','9081','9083','9085','9086','9087','9088','9090','9093','9094','9095','9097','9098','9099','9100','9101','9102','9105','9106','9109','9114','9115','9125','9158','9183','9203','9205','9206','9207','9208','9210','9211','9212','9213','9214','9215','9216','9218','9221','9223','9226','9255','9266','9267','9268','9269','9270','9271','9273','9275','9279','9280','9283','9296','10303','9365','9366','9397','9399','9403','9404','9429','9451','9467','9479','9471','9472','9474','9480','9482','9485','9486','9519','9520','9521','9529','9530','9533','9537','9538','9540','9550','9558','9563','9566','9575','9579','9581','9607','9609','9612','9613','9614','9615','9662','9663','9667','9668','9706','9711','9712','9717','9719','9720','9723','9725','9726','9728','9729','9731','9733','9735','9739','9741','9743','9744','9745','9765','9779','9780','9792','9818','9820','9821','9822','9823','9824','9826','9827','9828','9831','9832','9839','9859','9863','9864','9866','9868','9870','9882','9902','9911','9942','9945','9946','9948','9952','9953','9954','9955','9979','9993','10000','10001','10010','10016','10155','10024','10030','10031','10032','10033','10034','10035','10037','10039','10040','10041','10050','10075','10076','10077','10078','10081','10102','10103','10104','10105','10106','10107','10108','10109','10111','10157','10113','10158','10159','10160','10161','10162','10164','10165','10167','10168','10169','10171','10172','10173','10175','10198','10199','10200','10201','10202','10205','10206','10207','10208','10209','10210','10211','10212','10213','10214','10215','10216','10217','10218','10221','10230','10232','10233','10234','10235','10238','10239','10240','10241','10279','10280','10281','10282','10283','10284','10285','10286','10287','10289','10290','10291','10292','10293','10294','10299','10300','10301','10304','10306','10307','10308','10325','10326','10345','10365','10409','10410','10411','10412','10413','10414','10415','10416','10417','10418','10419','10420','10421','10422','10423','10424','10425','10426','10437','10449','10452','10470','10489','10491','10493','10494','10495','10496','10498','10499','10500','10501','10503','10504','10505','10506','10507','10508','10510','10511','10513','10524','10537','10539','10545','10547','10552','10557','10597','10601','10607','10614','10628','10629','10701','10711','10749','10897','10915','10916','10984','11010','11039','11075','11081','11107')) OR topic LIKE '%Frontier Tourism%" or topic like "%Innovation Management%" or topic like "%Twin Cities%" or topic like "%Mekong River Communities%" or topic like "%Kingdom of Thailand%" or topic like "%The Lao People's Democratic Republic%') AND `status` = 99 ORDER BY RAND() LIMIT 3

Filename: /var/www/html/thaiex_2021/models/m_search.php

Line Number: 101