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,6718,5922,6240,5446,2546,5936,3247,5923,5953,5949,7837,1266,7834,7815,7835,6354,8547,3070,7579,4405,3071,1371,1771,1766,6648,3531,3076,8627,186,8659,1461,6947,6103,7836,5763,2546,1016,8583,3908,8584,4659,7870,8793,8716,7816,3536,4227,104,1906,3346,2467,8586,7189,5385,1887,4216,8825,4339,6824,7167,7580,7170,7993,7165,1771,1765,1769,1768,8578,4931,8437,7166,8627,5371,9322,9757,5209,6381,1662,1089,8765,6134,6134,8716,8434,7852,4752,7810,3891,9392,9159,2263,7974,2266,2266,1089,1089,1089,4080,5446,2546,2179,4009,9007,5209) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC