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,6156,4671,4923,2417,5782,6578,1726,6794,1296,2729,1153,1988,6962,4920,5853,1973,6844,317,6003,1462,1380,4437,4437,2749,2749,7391,1461,4061,6631,7493,7437,7389,778,7467,4996,4999,5872,6619,1571,6275,4991,4991,6586,6715,6715,6715,3555,3555,3555,3555,3555,6295,6295,6295,3105,6402,6402,6402,6548,6400,6400,6400,6400,6400,2005,1645,547,7849,3865,4931,6798,531,551,510,6491,3071,7676,1324,2374,8003,532,546,6843,2005,8230,714,7300,6715,5717,7920,6783,6795,6569,5269,5269,9349,4568,9349,4568,9349,4568,9349,4568,9349,4568,9349,4568,9349,4568) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC