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,11211,7155,7121,10789,9259,7286,11210,7766,11509,8080,8366,11894,11212,7092,10774,10835,11693,10585,11652,11448,11709,11761,11763,7975,11332,11779,7765,11528,10629,10659,10906,9055,11777,8414,7275,11469,11500,11368,11370,9305,2748,9062,11893,11713,11804,11553,10770,11803,11540,11573,7297,10947,8199,10941,10965,10943,9563,10051,10942,9259,10944,10945,8361,4282,10946,10858,7118,11331,4304,4293,10077,8768,10623,979,11254,4121,4292,9744,9957,7251,11354,11355,11356,10882,9892,9149,6596,11150,3359,8205,8582,10858,7283,3895,8366,10947,8782,10948,4390,186,6768,1411,7024,7280,535,3896,3887,810,10944,9885,9601,8204,3894,1303,10829,3897,3885,3881,10000,10943,9959,9076,7155,7704,8201,11108,7986,8451,51,3085,7245,10827,4639,8712,7753,8228,8240,7752,10077,7147,7572,3070,7589,11225,11063,8272,6688,9095,10053,104,9095,10053,104,9579,11514,8640,10615,10008,8211,9867,10272,10232,10675,7172,10975,4659,11221,9222,9223,8812,9251,8812,9224,10887,7080,7088,10976,7600,11228,10278,9968,3908,11631,10823,10930,9741,8971,6740,7153,11836,7933,7238,9007,11707,7661,6629,1381) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC