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,182,1299,6713,766,1299,5371,3913,6979,8641,7982,217,7837,1266,7834,7815,7835,6354,8547,3070,7579,4405,3071,1371,1771,1766,6648,3531,3076,8627,186,8659,1461,6947,6103,7836,5763,2546,1016,3809,8583,3908,8584,4659,7870,8793,8716,7816,3536,4227,104,1906,3346,2467,8586,7189,1887,4216,8825,4339,6824,7167,7580,7170,7993,7165,1771,1765,1769,1768,8578,4931,8437,7166,8627,5371,9322,9757,7802,7801,8358,223,7826,9595,9596,9597,9599,9598,8730,8432,8816,8780,9720,8826,9215,9722,9721,9012,8815,3913,4216,5484,8822,8432,151,10088,10087,10090,8814,8826,10089,7592,840,9931,924,1371,9888,4320,5322,1052,6325,2989,10086,2554,9257,9195,5484,4742,9946,10314,10228,10871,8358,916,9771,3863,5435,5806,5419,10987,10687,9863,10976,10910,10985,11293,10816) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC