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,9540,11632,11754,7671,8450,11753,10881,11793,11062,11794,11367,8460,11925,10577,10449,10881,10693,8739,7249,8638,10009,7932,10862,10835,11127,10820,10890,10629,9540,11027,11162,9080,11103,9754,5965,9329,7585,11232,10702,7694,9959,10089,10566,10747,11372,11516,10768,11476,11331,11479,11628,11629,9509,11480,11225,11409,11453,11711,11689,11339,10614,11712,11453,11675,10749,11685,11382,11484,11845,11477,11417,10397,11846,3165,8257,7874,7970,2473,2915,4784,4701,9079,5380,9365,7218,4639,217,9904,9938,9937,1257,7903,9525,2658,9647,9900,9666,9922,9959,10000,9931,9366,9052,8948,2033,7143,5647,3830,9027,8793,1766,9829,4405,8087,10835,7106,10629,10919,10965,10992,11020,11068,11092,8792,10625,9082,10659,10694,8414,10572,7289,10692,10773,10689,11274,11276,11277,10906,11629,11628,11632,11652,11631,11633,11712,11630,11631,11712,11630,11685,11711,9509,11758,11743,11713,11528,7930,11518,11654,11651,11653,11779,11780,11782,11777,11797,8202,11793,11795,10770,11632,11671,11798,8460,11756,8080,11802,11801,11333,11865,11469,11367,9095,11675,11368,11794,11369,11781,11883,11674,11335,7275,11376,3336,11101,10687,11214,324,11305,10941,10773,10889,5995,4659,10770,11367,11763,11632,11224,11794,11628,11629,10890,11607,713,11926,11756,11805,11806,11777,10410,10411,7368,10449,10965,11332,8202,10406,11629,11628,11767,11866,11653,11634,11884,11839,11553,9508,10811,9821,10891,10768,11844,10399,10400,10401,11794,11630,11893,11864,11793) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC