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,3885,7143,7143,538,546,529,6621,543,533,544,7833,547,520,7976,541,528,6042,531,532,536,573,6646,7966,6610,550,7815,4607,4906,524,553,4716,540,1726,6394,8081,8080,7270,546,525,9132,9132,548,8917,8447,7576,7576,7576,220,10010,7026,7388,7388,7388,10235,6925,6926,6922,4227,3840,9899,653,10339,4419,11284,11299,6935,858,11238,4226,11410,857,8389,9767,3327,8596,9312,8713,7279,9756,7265,8475,10270,7666,10272,8458,8461,8537,7077,7971,7068,10789,7984,8391,8393,8211,10659,10692,10588,7087,10588,7111,7115,7116,7117,7119,7125,7675,7895,8047,8048,6131,9055,8770,9134,8739,9204,9206,9259,9529,10690,9563,11124,9578,11276,11471,9539,8063,11336,11337,9148,11059,11187,11469,11470,10906,8058,11376,7077,11034,11542,11035,7279,7666,8044,7077,7265,8213,7930,7280,7279,7244,11249,368,8693,8692,8694,6359,8656,7703,6271,726,9734,7199,11081,379,6520,11429,8655,11393,8585,11181,8696,367,11085,11238,6744,8855,6270,10167,11390,11080,11181,7704,8982,10613,6491,8655,375,11460,10687,11739,2872,6102,11497,8302,1811,11346,6718,8686,9547,8434,9865,8922,11400,9972,6717,10707,6978,10290,1983,2261,5995) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC