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

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 Syndrome%') 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 <> ('2500') AND bibid IN ('4','5','1','13','147','37','44','48','191','59','193','188','146','213','339','144','88','94','95','96','461','104','111','117','119','122','124','133','136','98','138','141','197','198','203','216','224','258','259','260','261','264','253','454','100','279','350','356','357','359','370','374','375','403','405','407','408','410','422','423','427','428','450','555','510','512','526','532','567','577','606','608','610','612','614','636','642','643','656','658','663','664','667','668','680','683','687','696','700','701','734','752','766','768','772','774','776','788','835','837','840','265','886','887','916','921','946','948','954','956','957','964','968','977','980','1021','1043','1044','1048','1071','1074','1075','1076','1077','1078','1079','1080','1081','1082','1083','1084','1085','1086','1087','1088','1089','1090','1091','1092','1093','1094','1095','1096','1097','1098','1099','1100','1101','1102','1103','1104','1105','1106','1107','1108','1109','1110','1111','1112','1113','1114','1115','1116','1117','1118','1119','1120','1121','1122','1123','1124','1125','1126','1127','1128','1129','1130','1131','1132','1133','1134','1135','1136','1137','1138','1139','1141','1142','1143','1144','1150','1166','1167','1168','1174','1181','1183','1184','1185','1186','1187','1192','1196','1195','1197','1216','1222','1223','1224','1240','1241','1253','1254','1255','1279','1280','1288','1301','1310','1281','1384','1411','1474','1475','1478','1487','1490','1491','1517','1531','1540','1556','1567','1638','1643','1645','1651','1670','1675','1688','1697','1698','1712','1719','1723','1725','1735','1794','1800','1801','1807','1808','4812','1851','1852','1853','1854','1855','1856','1857','1873','4845','1895','1901','1906','2070','2144','2145','2154','2178','2187','2198','2200','2236','2237','2268','2271','2274','2287','2289','2311','2321','2374','2379','2380','2381','2387','2396','2397','2429','2428','2459','2465','2467','2420','2485','2509','2521','2522','2532','2533','2538','2540','2550','2551','2552','2553','2554','2555','2557','2558','4879','2594','2607','2610','2619','2624','2641','2648','2651','2653','2654','2655','2656','2657','2659','2660','2661','6553','6545','6544','2702','2707','8780','2758','2791','2802','2806','2804','2805','2807','2808','2809','2810','2811','2812','2813','2814','2815','2823','2825','2830','2831','2838','2851','2857','2858','2862','2863','2868','2876','2877','2887','2906','2910','2915','2922','2926','2927','2928','2929','2930','2931','2932','2933','2934','2935','2936','2937','2938','2939','2940','2941','2942','2943','2944','2945','2946','2947','2948','2949','2950','2951','2952','2953','2954','2955','2956','2957','2958','2959','3046','3067','3070','3075','3076','3079','3096','3158','3159','3170','3178','3175','3181','3182','3184','3205','3208','3215','3216','3235','3247','3248','3249','3250','3251','3253','3254','3256','3257','4893','3281','3284','3290','3294','3312','3364','3366','3387','3389','3390','3393','3396','3397','3416','3421','3432','3449','3450','3451','3453','3458','3461','3493','3494','3497','3498','3499','3500','3513','3517','1312','3532','3528','3537','6','509','3553','3558','3563','3565','3567','3568','3570','3571','3577','3582','3590','3676','5046','3674','3689','3703','3707','3719','3718','3721','3724','3728','3730','3739','3753','3787','3789','3889','3806','4393','3904','3921','3974','3986','3994','3998','4014','4076','4083','4084','4087','4151','4185','4192','4228','4232','4233','4234','4241','4244','4356','4276','4278','4282','4287','4317','4339','4338','4341','4419','4452','4457','4496','4497','4509','4503','4506','4507','4508','4522','4524','4529','4561','4563','4573','4576','4578','4580','4590','4617','4627','4636','4638','4640','4651','4678','4681','4687','4761','6905','4823','4865','4867','4903','4924','4925','4951','4987','5005','5047','5048','5065','5070','5083','5096','5123','5115','5117','5118','5120','5137','5152','5157','5308','5179','5180','5207','5242','5253','5270','5293','5310','5311','5335','5364','5367','5371','5376','5379','5380','5414','5416','5426','5429','5431','5432','5433','5434','5435','5464','5489','5499','5564','5565','5578','5579','5581','5591','5594','5682','5695','5701','5706','5742','5743','5744','5769','5779','5781','5792','5794','5811','5828','5829','5830','5833','5884','5885','5887','5907','5919','6049','6080','6081','6082','6087','6133','6138','6151','6161','6180','6195','6200','6225','6265','6267','6268','6270','6282','6283','6291','6293','6300','6352','6312','6313','6314','6317','6318','6320','6329','6332','6348','6349','6355','6357','6365','6366','6370','6433','6434','6431','6436','6437','6449','6450','6451','6460','6461','6462','6463','6464','6465','6474','6495','6552','6538','6549','6551','6559','6580','6588','6598','6602','6607','6613','6622','6623','6660','6707','6714','6718','6745','6748','6785','6806','6817','6839','6840','6854','6860','6886','6959','6964','6979','6980','6981','6982','6983','6984','6987','6999','7000','7016','7043','7050','7078','7125','7127','7128','7130','7184','7190','7192','7193','7195','7231','7256','7293','7315','7319','7320','7332','7340','7396','7397','7398','7400','7402','7429','7440','7441','7442','7444','7471','7491','7494','7499','7519','7619','7620','7690','7691','7694','7702','7704','7725','7740','7809','7813','7841','7896','7897','7898','7903','7915','7937','7938','7939','7947','7951','7952','7984','8000','8003','8019','8015','8017','8013','8020','8023','8029','8030','8039','8061','8073','8075','8076','8077','8078','8079','8080','8108','8124','8133','8145','8165','8213','8219','8223','8227','8261','8325','8339','8349','8359','8376','8397','8341','8460','8496','8500','8522','8529','8536','8581','8583','8585','8588','8589','8668','8672','8689','8714','8720','8729','8777','8778','8827','8855','8856','8929','8933','8953','8958','8959','8962','8964','8965','8970','8971','8972','9119','9121','9133','9132','9164','9284','9285','9286','9302','9305','9306','9307','9310','9311','9323','9389','9487','9446','9476','9522','9539','9542','9549','9637','9650','9653','9659','9660','9661','9707','9748','9747','9751','9783','9784','9785','9848','9929','9957','9960','9962','9965','10006','10007','10020','10022','10045','10048','10062','10065','10085','10114','10116','10138','10192','10193','10297','10313','10347','10358','10456','10435','10431','10519','10520','10458','10460','10461','10531','10534','10540','10578','10603','10652','10653','10689','10712','10698','10700','10707','10708','10727','10713','10715','10716','10725','10726','10732','10733','10741','10746','10759','10767','10770','10775','10776','10777','10778','10788','10793','10796','10808','10814','10816','10823','10859','10866','10870','10877','10882','10885','10891','10893','10894','10901','10911','10910','10920','10921','10923','10935','10941','10946','10947','10948','10949','10950','10951','10952','10953','10954','10961','10962','10964','10970','10972','10977','10987','10988','10989','10997','10999','11003','11004','11019','11020','11025','11029','11040','11054','11057','11067','11093','11097','11100','11102')) OR topic LIKE '%Transthyretin, Chimeric TTR, Toxicity, Inhibitory, Fibroblast Down's Syndrome%') AND `status` = 99 ORDER BY RAND() LIMIT 3

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

Line Number: 101