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,8593,8826,7188,7176,7162,8731,8245,8241,9292,8083,8742,8658,9056,9158,8794,8418,8419,8425,9057,9530,9580,9844,9874,9028,9610,9611,9563,9510,8268,7660,9608,8438,8202,7659,9158,9609,9819,9818,7655,8408,8475,7079,7273,9189,7111,7121,7084,8401,7286,7244,7280,7986,8395,7262,7109,7714,9314,8577,7713,9082,9623,9370,9199,9743,8772,7096,8086,8722,7671,8207,9793,8712,9446,8423,9441,7251,8049,8034,9816,8766,8041,8791,8770,7275,8537,9819,9818,9205,9508,8383,9738,10030,9560,9563,8439,10077,9053,8406,8386,9817,8767,8203,8085,9083,7715,10026,10186,9999,8394,10789,11631,11376,11045,11508,11555,9509,11654,8081,11746,8087,11712,8424,8740,8568,7268,7245,7088,10575,8413,8720,11367,11531,9057,11096,11692,11693,7264,9095,11668,11188,11189,8470,8383,11225,11332,7084,8071,7275,8577,7660,9370,10011,7660,8467,7154,8397,9057,9995,9082,10030,9058,9658,9664,8653,8438,8653,9059,10274,10271,7154,8209,9293,9999,10401,10400,10399,10614,10615,10510,9083,9574,7278,8052,9577,180,10349,11282,8207,28,11288,11063,3863,8922,8737) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC