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,7265,8213,9821,8213,9821,9821,7068,9821,8062,8062,7657,7657,9719,8050,8720,8450,10882,10882,8240,10890,10890,10630,11045,11096,10400,10399,10625,8282,11225,9058,10906,11124,10863,11276,11187,11331,11125,10011,9161,8573,8360,10771,10769,7267,10770,10862,11469,11470,7674,11471,7670,11332,9225,11633,11626,11652,10689,7275,11630,9662,10854,10855,11700,11755,11757,11631,7092,10774,10835,11693,10585,11652,11448,11709,11763,7975,11332,11779,7765,11528,10629,10659,10906,9055,11762,11777,8414,7275,11469,11500,11368,11370,9305,2748,9062,11893,11713,11804,11553,10770,11803,11540,11573) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC