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,11235,10568,3026,9212,2933,8445,11126,7666,7265,252,10568,7245,10244,9748,10288,9747,10065,9638,8393,10857,8999,1699,11349,10856,10895,7883,11123,608,1521,4460,10042,10266,5817,5339,10569,11237,1253,3080,6858,9372,6730,11028,10243,7839,8213,11558,10787,9454,8548,11495,9832,9125,2294,8888,5545,11573,9220,7126,4258,7017,2337,11488,1347,9904,11647,10541,11669,10686,7839,8764,10671,4558,10983,11372,10747,206,11724,10291,9372,3413,3625,10292,2933,11678,11782,4136,4082,964,11691,7970,11839,11884,11871,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,11652,11631,11633,11712,11630,11631,11712,11630,11685,11711,9509,11758,11743,11713,11528,7930,11518,11654,11651,11653,11779,11780,11782,11777,11778,11797,8202,11793,11795,10770,11671,11798,8460,11756,8080,11802,11801,11333,11865,11469,11367,9095,11675,11368,11794,11369,11781,11883,11674,7998,1016,9029,1385,1385,3728,7607,6170,217,8435,8626,2262,8761,1381,7884,9481,6103,134,3908,9649,9736,9757,9389,7175,8891,8658,7262,3428,9387,10538,10767,8517,10584,9387,10583,10769,10738,9594,10412,11332,11045,8864,11096,8712,9247,8284,8430,11686,10582,6113,5175,665,6141,1533,1073,4199,1051,6158,2913,1050,186,2530,5576,6633,435,3904,6001,1145,2182,2261,176,4154,6962,446,1370,466,2490,5421,3989,1272,1770,1126,7607,6785,6845,1038,6986,6158,8358,8547,431,7265,7661,8947,6130,8047,8034,4068,5142,7605,9558,9652,7143,9959,10060,1769,970,9053,7164,4464,8282,3872,134,10238,2736,9378,10531,9920,9264,7607,7913,2467,8714,8876,9607,9824,8828,11201,7655,7674,10315,7661,6119,9608,11363,11713,11117,11631,7252,11674,11312,10506,11683,9540,11754,7671,8450,11778,11753,10881,11793,11062,11794,11367,8460,11925,9543,4639,7953,11661,11497,4788,11101,582,11631,8087,11754,1755,3336,11101,10687,11214,324,11305,10941,10773,10889,5995,4659,10770,11367,11763,11224,11794,11628,11629,11778,10890,11607,713) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC