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,7879,6209,8111,2009,7976,7977,6845,2024,6870,1380,5822,2263,3874,3874,9479,4146,8835,220,7546,1992,3891,7037,4639,7605,8110,8547,8305,6971,8109,6767,1453,6891,4969,7783,6785,6726,2522,7632,7006,7632,7006,9788,9788,9695,9682,9950,9953,9951,9687,9681,9686,9681,9686,9049,9868,10182,8884,10259,10260,4906,10273,8948,8947,6010,3913,3913,7833,9950,3913,9879,9614,9959,9770,9547,9868,778,10080,9939,9933,8948,9991,9338,5269,6691,8823,8823,5936,10291,7639,3346,8828,9771,7993,698,7359,10312,10273,5467,5467,5467,10033,9915,3830,6197,3989,4580,275,4860,1165,4234,3860,5535,726,393,2882,2160,4730,6154,1537,4131,5996,6545,1137,543,397,6138,6040,6559,4023,725,6686,6679,6197,7879,7840,7143,7878,8220,5764,7903,8183,3784,3263,215,8222,6750,7998,7638,5995,3761,2467,419,6981,1506,501,2706,8306,3059,971,1215,4178,1257,7833,3134,3368,8542,8616,8488,7840,7879,7878,4259,8529,8306,5143,466,252,6204,6539,7631,7870,7582,4136,3542,8434,4788,7896,8611,8615,3413,2261,7641,7837,7615,7903,7834,9144,8983,6713,9300,8842,9130,7910,9547,6023,10119,9220,9807,10548,10244,9770,10523,10526,9924,10300,36,10688,11733,11346,10569,10892,10734,9811,10674,11325,9831,11380,11101,10687,11749,11215,11311,10233,10063,6134,9220,10079,6104,10473,10300,10397,10065,9290,10569,10050,10683,587,10472,10646,8517,9984,2555,582,10739,10918,5858,2998,10528,766,7019,7761,8222,4635,10228,9463,8793,4178,5148,9897,9195,4796,9892,9552,5995,2033,9925,2605,9987,10044,10894,11238,6740,979,10877,2932,9942,7238,10432,735,6146,10466,3029,145,11069,7610,10988,8512,11071,8109,7840,7299,7879,6800,9363,10002,7878,8002,9354,6986,9321,11068,9900,6971,11067,10893,10064,1762,10520,10892,11460,9366,5210,10474,10368,9249,1812,1536,10050) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC