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,5947,8471,7670,6870,8046,7665,9441,8461,4566,4337,7599,8423,9134,9835,8742,8031,9950,9300,9910,9554,9749,4767,9984,11454,7989,4411,11234,4901,11457,10832,9929,11423,11134,10784,11454,9634,7719,10019,11679,2761,11315,7592,9767,3493,7554,7755,7756,7754,8509,7927,8922,178,177,179,6117,3549,8305,6857,5334,11271,7581,6780,8543,9648,9347,9798,10149,10476,11423,11142,10878,11645,11816,6315,4316,4512,5003,9045,5541,11990,4432,8615,6002,8955,11703) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC