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,6595,6154,2992,754,585,3080,6312,4131,1398,1433,6845,5817,5339,6104,4258,6117,1953,3542,466,2658,4199,5912,2294,608,6862,4460,5371,6870,739,1347,7126,228,3492,1699,5339,5142,2337,3625,36,1461,3542,1253,4535,4092,6124,5545,2989,3368,255,6605,793,2573,5848,4788,6560,320,947,4199,6130,1453,1521,6117,1038,1086,4337,6776,2447,6700,3184,7374,4510,4987,2384,5439,226,1439,5576,7204,6967,7605,5914,3885,1424,2894,1272,8220,8271,7926,8220,8214,8560,8547,8415,5602,800,8556,7292,539,6689,7069,8047,7878,4399,7840,7169,9052,8547,9366,9362,9746,7112,766,9552,9796,8071,7089,10048,10056,7019,3159,7953,9833,9945,8514,10146,10130,9116,10836,8556,9563,10906,10937,9864,10937,9227,10504,2615,10873,10872,8823,6599,10340,4146,5897,6799,6804,3744,1270,6727,5068,5998,6977,7149,7374,2967,4985,7155,6565,7416,7937,8094,2864,6860,1271,6365,6130,1727,3892,7290,8523,4385,9095,7677,372,9300,9381,9374,9621,9890,7092,10774,10835,11693,10585,11652,11448,11709,11761,11763,7975,11332,11779,7765,11528,10629,10659,10906,9055,11762,11777,8414,7275,11469,11500,11368,11370,9305,9062,11893,11713,11804,11553,10770,11803,11540,11573) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC