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,6534,8682,6505,6532,8088,446,4178,2488,7734,694,693,7569,8731,8591,2785,2795,2783,2786,1266,8247,8874,8245,8943,8944,8241,8248,1537,2869,7897,3860,7953,9486,9486,5994,3830,6010,6880,4087,9156,8925,9192,9143,365,368,386,391,6076,382,5994,9191,8899,9951,9048,3890,1894,3890,1894,1895,7194,545,540,5669,542,5669,542,5445,549,5445,549,2923,9177,548,2703,5810,5368,961,8681,2164,2913,5175,9257,8388,2455,9449,9378,9601,6925,8655,8824,9078,1296,5435,10010,7194,1993,9863,9426,8333,11161,10332,10325,11759,8244,8339,8243,9427,11138,8246,10329,11615,10323,10217,11242,10158,11050,11677,9434,10333,8649,9435,10326,10327,10330,10202,10324,9425,8249,8597,8241,10195,10551,8585,8242) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC