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,7761,8222,4385,1152,5516,254,8686,254,8686,8544,8193,752,9257,8151,9552,9354,9629,3304,1257,6632,1257,6632,4234,9422,9235,7828,5236,6712,9406,6445,9296,6139,9386,9543,9612,9646,252,10128,5070,9453,4861,10173,5784,9951,5784,9951,8255,10932,11101) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC