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,2079,4520,8175,2021,4659,4659,8260,6600,10305,7067,1417,8168,6760,6988,1787,6393,9976,11023,365,8685,11079,11080,7841,1993,3327,10211,3863,5435,5435,7283,10903,8389,9547,8434,8435,10578,1609,6646,6723,6723,9498,9498,6393,6393,9547,1772,6186,6186,8686,8686,1983,9843,8434,6000,8434,10455,9849,9849,6561,6561,6561,7371,10203,4769,7501,10296,11019,10292,6718,10992,207,6406,11269,10940,11247,11118,10466,9716,10408,10490,9706,9718,11254,6603,9708,11051,11427,9690,10695,860,11263,11295,6361,11053,11239,9949,10519,10519,11438) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC