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,8108,867,1886,8579,6958,8621,1984,6738,7204,8650,5439,8196,8623,6648,2643,8435,6701,8633,8255,6820,8542,6959,8622,6960,8624,6687,6972,6973,6974,8112,2775,8579,6631,3913,5435,6820,7576,6122,8547,5602,8839,8590,1085,1086,1084,5994,7148,6483,8122,8976,8659,1085,7446,9022,7560,4918,6195,7849,7387,4401,7388,7388,7388,6388,8434,8349,5719,8541,8628,8678,8761,7905,8542,6787,8922,8389,9090,1886,8290,8220,8435,9547,8435,9547,8435,9547,6105,9727,7920,1774,1775,665,1786,3108,3105,3105,1782,1779,9796,9857,9791,4989,6646,6394,358,7288,8768,6962,6383,8523,1664,6110,8523,186,5965,8831,7912,6715,6832,6402,1296,3823,3865,1380,7912,6383,8356,8355,7805,1308,7918,9498,7541,7541,6367,7918,9065,26,4437,1345,7505,6897,8659,2635,9762,8005,9729,7711,9467,2384,6394,7917,1726,6174,9729,9856,9975,9975,9737,9737,10056,10035,7966,7966,7917,3247,8434,8622,9978,3402,7159,5098,1974,1726,4923,9856,1307,9488,10301,8650,10316,10316,226,4923,11101,11215,11101,11215,11497,10579,5435,10731,5435,10731) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC