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,8460,8568,9563,7249,8083,8641,8086,10584,8657,10575,9082,10624,7258,10582,9187,8459,9134,9609,10869,10789,10906,7106,8430,8370,8424,10767,11045,8039,11187,10584,7071,11124,8045,11278,11277,7121,8056,10692,8739,8039,9054,7276,7272,11196,8370,8282,9539,9578,11124,7662,7661,11125,11276,7278,11334,11376,9793,8711,8431,10510,11472,11469,11471,7241,11411,8711,11470,7574,11196,11511,7108,9370,10580,10275,10271,10270,11333,7271,11526,8411,6750,7124,2992,1988,8580,6740,6740,9139,8743,8743,8415,8415,8050,7288,7288,7111,7111,7115,7115,7664,9401,8771,7113,7246,7117,7263,7263,7505,7505,9877,8460,9873,9874,9874,9856,9856,9821,9821,11515,9398,10591,10659,10774,10615,9957,10807,8928,8438,9973,10007,10011,10009,10854,9875,9876,9877,9874,11064,11065,9878,10029,10625,10835,10834,10965,9744,9796,9821,10811,11108,11063,9955,10888,11187,11196,9148,10623,11210,11212,10614,10855,7576,10617,11331,11500,11892,11211,11376) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC