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,7421,7385,7491,7459,7470,7437,7565,7565,7561,7501,7548,8223,3549,6189,5334,51,5996,6766,7304,2992,3860,6780,772,7977,7572,4801,8032,5582,9030,5881,8019,10390,10264,10445,6922,6925,8156,10263,10222,10597,10389,673,10428,6754,10443,6382,6938,9088,6928,6929,6938,9089,6932,6931,6930,10593,10594,10596,10598,10595,10599,10600,10601,10603,3277,11052,10147,9633,10045,10419,10424,8784,11592,9882,6743,6066,8882,8880,381,524,3881,8878,374,8787,9879,378,6270,10526,392,3885,11663,1770,7003,834,6189,7022,5947,3913,3613,5070,4796,501,576,6763,7707,7119,1116,6925,2282,2283,6764,6765,6763,7155,7281,6413,6414,2389,7066,7594,4544,7421,7672,8203,924,7374,7491,7565,8363,5454,156,8206,8206,8839,6364,7385,7292,7247,7561,7101,7241,7472,7251,7422,7422,7476,7238,8220,254,254,1257,3895,9631,1085,7446,9022,7560,4918,6195,7849,8130,4401,7388,7388,7388,7421,7420,7416,7389,7388,7528,7412,7541,7445,10523,8201,8199,11844,8198,8928,11512,9259) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC