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,6348,3440,3647,3647,659,7828,1183,7008,6770,4068,7213,7374,7374,7951,7951,5965,6821,4774,4724,9975,9417,8144,8144,8762,8896,3581,8243,8872,542,1665,375,8786,1500,8951,384,1766,390,8334,8856,8332,323,9049,9182,375,8700,6744,8,8874,6381,9501,9481,8307,6974,9686,6700,446,8436,6977,8951,6715,6006,6903,9096,9676,9096,9676,7893,6208,4079,2092,4092,7777,1016,3908,8144,6622,6832,7374,6903,1461,9195,5245,4144,7670,9277,8514,7775,8910,7981,659,9641,2160,4432,4079,6315,5564,5314,1645,5020,4076,5093,6104,6845,9925,9405,8514,8910,9338,9406,6622,7909,30,10476,9798,9929,9930,6117,7581,10149,8543,9648,9961,9634,6857,10543,7872,2530,93,10878,4125,9543,9235,9193,446,9959,6849,9402,11041,9325,9910,10063,11122,9786,9789,10080,10412,4923,4795,10081,11220,11361,10093,9524,9557,7888,11489,11646,5193,10986,10092,10094,9096,10190,6550,7113,3882,3897,3885,659,374,310,389,546,540,3893,553,964,1242,524,6611,6611,1151,545,1167,6209,4076,8289,7572,1810,7124,6405,6408,6408,821,7083,8198,820,8199,892,892,8438,8363,7646,7646,7122,7124,7107,1500,7094,801,1265,2145,2145,915,5936,8171,7666,7666,7666,2997,2766,2389,358,6364,1402,217,11658,11774,1250,11650,11660,11659,10454,10321,9537,11662,9543,11657,9679,10228,9889,10860,4701,11770,6102,5269) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC