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,2380,925,956,6990,1600,360,470,1575,744,2974,2151,650,652,243,1487,3645,1237,6885,7029,6563,4008,7063,8289,6564,925,1098,1869,943,8148,7047,6576,6570,6573,1727,5947,6569,6574,2331,947,6883,650,6998,6678,7122,7228,6562,5961,7105,7124,8942,6362,7050,7175,8182,5735,186,4131,6575,6795,6669,7757,7237,7232,7227,9321,9982,9531,7057,6571,8726,9487,1856,10205) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC