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,5996,5681,1813,5884,1378,1726,6123,5116,2027,5406,6155,850,4765,6367,5691,8,5951,6817,2156,6396,1885,1886,3531,6561,6223,6497,6138,7775,6223,6841,1207,8151,8435,3070,3071,7881,3071,7753,8088,7881,8467,7660,7268,7084,6151,1327,458,6616,3549,6103,464,3428,5334,3997,5882,6798,6840,6763,1663,6157,2998,3449,3069,6427,3389,6491,3898,452,222,4913,6600,6855,6388,2507,4765,3254,3169,6151,2684,6905,464,4659,6181,2164,735,393,6894,379,6146,2737,1049,397,7195,7199,8656,9088,6523,3327,8387,6545,8305,6604,8592,6616,6719,6700,9151,9190,3879,8097,6521,7400,9502,9647,9502,6977,6700,7828,7148,7148,2897,2897,6133,8303,2736,4899,1402,6113,9129,4512,6550,6264,850,414,850,414,8516,8516,8516,8516,8516,8516) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC