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,7976,6712,8836,8951,8947,8681,8358,322,4860,9049,8962,9235,9235,8539,2447,2447,8616,9647,9789,9789,9963,9983,9969,9208,9967,9938,10039,9914,9964,9836,9834,10066,6712,9799,10060,10085,9896,10081,115,9780,8150,8169,9381,9465,5917,4985,9900,8620,9926,8135,10003,7131,9967,156,130,1569,7846,4983,10061,8169,7873,7640,8170,2384,8170,10070,8144,10182,10060,9544,9918,40,9918,9404,10267,9126,9959,6891,9125,10240,6891,10190,10021,10493,10121,10183,7921,10541,10547,10566,2644,10464,1563,10261,8759,10669,8608,4761,9460,9558,9824,1740,10293,4140,10672,10832,10226,10820,9759,142,7890,10611,9107,10979,10979,9968,8780,10126,6828,10977,9757,10976,8780,10541,8620) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC