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,6965,6966,6110,6969,6968,7805,6970,3029,4944,6383,8349,8523,6621,8352,8357,8354,8523,8356,6969,6609,6815,4146,1052,8839,4460,9017,6808,5719,9620,8324,1586,6569,8618,5088,380,6968,6962,3898,7631,8788,6076,9217,9590,9119,8972,9785,4684,8356,9555,9781,2522,9947,9001,8311,9880,9838,9231,8917,10253,4716,9146,9156,6836,9882,8228,6962,6110,6963) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC