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,5995,6140,2473,1325,7241,6381,524,7363,6383,6175,3550,501,8142,8097,8115,6362,6110,8305,8305,8019,8019,6157,240,961,961,961,961,8223,8223,7863,1402,7900,6780,8706,8706,6310,8967,8514,8514,7911,1052,1126,6118,1371,8290,8151,5334,435,5251,7658,1379,8628,8628,7913,7084,7083,7167,7654,4520,7077,8580,8015,9543,6197,9873,2520,11331,10941,10686,7166,8585,9874,7250,7165,9875,8584,11354,9719,8212,11149,6354,4464,3070,7662,9876,9877,3073,8577,8199,3071,9878,10045,9601,6689,8577,7168,9367,7169,4791,7164,8662,7654,7297,6774,1730,4486,8580,7173,7298) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC