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,4659,7607,713,8866,8866,393,382,6381,6381,9692,9692,376,391,8858,390,3898,379,375,6076,6076,3702,8863,8863,1770,3889,3889,1765,1765,1765,7674,7106,7971,8050,7097,7665,9205,7449,7406,7404,947,384,7247,7241,7241,7069,7467,7467,7506,7506,7437,7420,9019,9019,9019,9024,7501,7457,7457,7457,7457,7457,7457,7491,7389,2627,8205,8204,8274,7416,8505,9019,6602,1765,10916,3889,8858,6183,11358,1983,1358,11099) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC