this

MySQL returned error




Error Description :
Error No : 1064
Description : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,act' at line 1

SQL Query
SELECT COUNT(`book`.id) AS CNT FROM `book` WHERE id!=0 AND book.id<>0 and book.active='yes' and city_id!='' and book.id in(0,6006,4411,5419,2218,3038,1145,1345,6023,4798,6953,3428,4226,5995,1038,3428,5996,2160,6103,5321,233,4355,228,6315,5837,4056,5421,2194,1998,6361,1453,6633,358,5885,1591,6709,6769,6312,3921,5914,1402,6718,6588,4088,5081,5371,2932,6783,3241,6586,1173,1038,1586,6716,6584,6408,6407,4227,6817,1793,5981,5331,5371,7012,2869,1351,5576,2317,6103,4037,6632,5193,217,4901,8031,1439,8290,322,7961,7861,8541,5904,7592,2997,2873,7904,3926,8164,8164,8164,6191,6191,6750,4432,9038,858,3913,800,5647,8434,5732,9373,9549,7175,9277,9654,9335,9677,8688,8904,9197,9635,6337,834,2869,9636,9295,9149,9764,9811,107,1351,9651,9933,9680,6204,4146,7089,553,7297,547,7107,535,545,546,547,548,549,3714,2997,7516,524,542,6569,536,536,5914,8372,7102,8055,8055,7083,7270,7270,2873,8408,8832,8832,526,2447,9632,7664,9107,9973,8363,8081,9082,10025,8185,2374,2182,4598,3913,5516,5732,6557,4411,5322,6255,5331,320,5988,4046,4199,4452,3201,520,4574,585,4432,3933,3440,4987,5020,6863,4233,2025,4805,6553,840,1490,6554,5647,6552,4337,5693,6880,6243,5573,2703,2397,4918,2324,6556,4209,7350,8435,2546,8463,6968,368,7985,7986,535,8832,8782,4037,6869,4798,7592,8917,8034,8240,8948,2913,7599,7521,7485,2261,3201,3888,3895,3892,3885,3891,3889,8272,3883,5609,6493,9300,8877,8274,7294,8839,9072,2737,1173,6174,6905,9437,1487,9438,6650,4121,8257,9439,9373,9459,5,4708,3990,450,539,7501,7491,6042,573,526,553,541,539,7772,510,1765,7770,524,551,532,528,7771,1769,6876,533,512,511,9792,7772,7580,7637,546,9911,7638,7596,9147,9155,9150,9154,9156,9231,548,529,9145,9144,9146,9151,9190,9217,9192,3719,9143) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC