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

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 'Life%') 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 <> ('6491') AND bibid IN ('6','159','12','26','27','29','31','32','33','34','162','35','36','37','38','42','43','155','45','46','47','48','167','171','50','51','52','53','54','55','56','169','57','154','60','61','62','63','64','65','68','69','71','193','72','73','74','75','76','79','78','80','81','83','213','86','87','88','89','90','91','93','95','251','111','115','118','117','119','120','123','125','129','130','131','133','134','135','105','136','142','197','198','284','245','246','247','252','259','260','261','263','264','265','266','268','274','275','276','277','278','283','290','297','202','298','299','288','311','312','314','315','317','318','319','320','321','322','323','325','363','327','330','333','335','358','364','365','367','368','369','370','371','372','373','374','376','424','381','391','392','393','394','395','396','397','398','399','401','404','405','406','407','409','410','411','412','435','437','443','444','481','478','494','506','536','545','552','568','569','571','574','604','594','599','601','602','613','625','639','704','689','693','737','761','771','772','773','775','778','787','789','790','791','794','797','806','810','813','814','815','816','824','839','843','849','850','862','864','866','874','5037','877','878','1295','890','891','895','896','897','912','913','922','924','926','928','932','938','943','957','958','959','960','961','975','987','1006','1007','1008','1009','1010','1011','1014','1034','1040','1041','1042','1148','1151','1152','1153','1155','1156','1157','1159','1160','5038','1213','1231','1232','1234','1235','1237','1238','1239','1245','1247','1248','1250','1251','1267','1268','1269','1270','1271','1272','1285','1297','1298','1299','1300','1301','1302','1303','1306','1309','1342','1359','1360','1368','1370','1372','1374','1388','1389','1390','1391','1392','1393','1394','1395','1396','1416','1439','1441','1442','1444','1447','1449','1450','1452','1465','1482','1483','1502','1530','1531','1532','1533','1534','1537','1555','1557','1558','1592','1593','1594','1595','1596','1597','1601','1602','1603','1611','1612','1613','1614','1615','1617','1618','1619','1620','1621','1623','1635','1644','1663','1694','1696','1697','1699','1713','1735','1743','1747','1749','1750','1751','1752','1753','1754','1755','1764','1792','1804','1807','1808','4813','1827','1828','1836','1835','1845','1846','1847','1880','1878','4857','1896','1905','2079','2133','2121','2122','2123','2172','2175','2177','2189','2201','2202','2220','2232','2233','2234','2235','2238','2239','2260','2261','2262','2263','2288','2298','2312','2329','2330','2332','2333','2334','2335','2336','2347','4902','2380','2381','2382','2386','2390','4926','2402','2413','2418','2431','2432','2433','2448','2453','2469','2470','2479','2480','2501','2511','2518','2539','2536','2543','2544','2545','2579','2608','2609','2611','2612','2613','2616','2642','2643','2695','2696','2697','2698','2699','2700','2703','2754','2759','2760','2788','2832','2855','2857','2858','2862','2864','2880','2892','2894','2895','2896','2897','2898','2899','2977','2980','3018','3022','3023','3025','3296','3056','3059','3076','3080','3086','3087','3096','3120','3121','3124','3141','3145','3156','3161','3172','3190','3192','3193','3194','3195','3196','3197','3210','3211','3217','3218','3261','3265','3286','3297','3298','3299','3300','3301','3302','3303','3305','3308','3321','3323','3481','3352','3353','3356','3358','3360','3370','3372','3388','3389','3390','3391','3392','3394','3398','3511','3421','3429','3439','3440','3446','3619','3487','3492','3495','3496','3497','3627','3544','4126','3573','3574','3575','3576','3578','4122','4121','3676','3659','3653','3684','3685','3686','3687','3693','3698','3699','3700','3701','3702','3706','3774','3779','3839','3829','3830','3865','3879','3880','3882','3886','3887','3896','3897','3906','3945','3946','3948','3951','3952','3953','3954','3955','3957','3959','3976','4095','3990','3995','3996','3999','4056','4068','4079','4080','4097','4085','4086','4088','4169','4134','4142','4145','4178','4187','4193','4222','4223','4224','4227','4229','4263','4280','4281','4283','4284','4285','4286','4288','4289','4291','4292','4370','4570','4372','4383','4384','4385','4388','4389','4391','4392','4410','4411','4415','4423','4440','4460','4461','4470','4497','4501','4503','4504','4511','4512','4513','4514','4515','4516','4517','4518','4519','4520','4532','4571','4572','4575','4577','4579','4589','4611','4633','4620','4635','4637','4639','4641','4642','4692','4743','4781','4787','4788','4795','4899','4814','4815','4816','4818','4819','4820','4821','4822','4866','4868','4869','4870','4911','4919','4921','4927','4929','4985','4994','5000','5002','5006','5021','5029','5050','5039','5040','5042','5043','5044','5045','5073','5075','5305','5090','5129','5134','5299','5184','5192','5196','5198','5199','5200','5201','5203','5197','5212','5219','5221','5235','5250','5287','5288','5295','5296','5312','5315','5321','5333','5358','5359','5361','5384','5411','5427','5436','5452','5453','5469','5475','5485','5486','5487','5493','5498','5513','5571','5566','5569','5582','5583','5592','5595','5596','5597','5598','5599','5601','5614','5622','5625','5645','5649','5655','5657','5659','5686','5696','5697','5699','5710','5708','5711','5717','5740','5722','5723','5724','5725','5726','5727','5728','5731','5732','5733','5734','5735','5736','5745','5749','5750','5760','5800','5839','5851','5852','5855','5856','5857','5858','5859','5861','5863','5864','5882','5883','5886','5889','5893','5895','5896','5900','5901','5908','5909','5910','5914','5915','5916','5918','5920','5921','5922','6000','6003','6018','6052','6100','6103','6106','6107','6108','6109','6110','6113','6114','6115','6116','6117','6119','6121','6122','6123','6124','6125','6126','6127','6128','6129','6130','6131','6132','6134','6136','6137','6140','6141','6143','6144','6160','6162','6166','6167','6168','6169','6170','6171','6172','6173','6174','6175','6176','6182','6183','6184','6185','6186','6196','6201','6202','6229','6258','6266','6269','6272','6273','6274','6284','6285','6286','6292','6294','6295','6296','6297','6301','6302','6303','6304','6307','6308','6309','6310','6315','6319','6321','6322','6324','6336','6350','6363','6367','6369','6371','6410','6427','6432','6433','6456','6457','6458','6459','6467','6468','6469','6471','6472','6476','6477','6478','6479','6482','6483','6484','6487','6558','6583','6584','6585','6591','6593','6594','6596','6599','6603','6604','6605','6608','6609','6610','6611','6612','6614','6617','6628','6645','6668','6669','6670','6671','6672','6673','6674','6678','6691','6700','6715','6742','6743','6744','6774','6775','6776','6797','6807','6811','6814','6824','6827','6830','6835','6837','6838','6845','6863','6864','6896','6897','6898','6901','6902','6903','6915','6944','6951','7054','7053','7117','7122','7180','7223','7229','7238','7246','7247','7253','7249','7251','7250','7266','7268','7349','7414','7452','7433','7461','7501','7502','7517','7569','7570','7571','7572','7573','7574','7575','7576','7577','7578','7579','7580','7581','7582','7583','7584','7586','7587','7588','7600','7607','7610','7611','7612','7631','7646','7669','7724','7721','7722','7723','7727','7728','7736','7826','7827','7828','7829','7867','7868','7915','7918','7919','7920','7923','7924','7929','7934','7935','7936','7977','7980','7985','7986','10889','8018','8024','8026','8027','8031','8032','8033','8034','8045','8088','8154','8169','8171','8173','8175','8176','8177','8179','8181','8182','8183','8185','8187','8188','8190','8256','8295','8299','8297','8324','8341','8346','8412','8415','8416','8377','8423','8424','8425','8459','8467','8654','8665','8672','8674','8679','8678','8690','8848','8935','9053','9092','9125','9159','9171','9242','9243','9253','9293','9294','9344','9346','9351','9363','9367','9413','9489','9436','9447','9456','9843','9653','9660','9664','9665','9671','9704','9734','9763','9842','9934','9952','9976','10014','10063','10080','10083','10170','10184','10185','10224','10356','10357','10406','10430','10440','10454','10517','10516','10529','10535','10546','10552','10555','10601','10607','10611','10612','10615','10618','10625','10628','10634','10636','10638','10675','10680','10681','10699','10717','10718','10740','10743','10745','10764','10768','10785','10788','10876','10886','10906','10913','10915','10938','10942','10969','10971','10974','10983','10985','10986','10990','11001','11007','11014','11015','11044','11045','11046','11048','11052','11059','11075','11076','11089','11096','11099')) OR topic LIKE '%การเชื่อมอะลูมิเนียมผสม%" or topic like "%DC-GMAW%" or topic like "%DP-GMAW%" or topic like "%อายุความล้าของรอยต่อ%" or topic like "%Aluminium welding%" or topic like "%Fatigue' Life%') AND `status` = 99 ORDER BY RAND() LIMIT 3

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

Line Number: 101