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,7920,1774,1775,665,1786,3108,3105,3105,8130,1782,1779,9796,9791,4989,8525,8778,9405,9866,7980,11265,11265,11259,7773,1369,6584,6402,6069,1272,9376,8689,9405,6715,8389,1885,5995,801,156,3236,7869,5795,3525,4913,5639,6311,9788,9497,9951,4156,2453,9959,9778,9543,9637,9543,9637,9868,6010,9868,6010,9868,6010,5269,754,5269,754,3878,6173,916,7788,7788,7788,7788,10035,10035,10812,7157,6282,1811,1359,7920,9865,10436,9976,10365,8559,272,6715,6197,9633,9632,10232,5435,10698,9667,10731,4435,313,4769,8710,10831,9946,5435,8833,10539,8715,4671,10309,10010,10342,9950,6392,6276,4563,10704,6843,10909,10676,10687,7804,9513,9006,10539,2157,5000,9062,9803,6239,3609,6237,10539,10566,6291,8256,6611,10676,8668) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC