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,7103,2288,2288,6209,6209,6240,6240,6133,6133,7642,5566,5953,8111,7884,4752,6778,2627,4558,8764,8434,8856,1511,9737,8956,6294,6740,8111,7238,9692,8220,9843,8220,9843,8389,9698,8389,9698,1765,9649,8728,8729,9911,9912,9720,7909,7028,6835,9996,8897,9959,9937,10187,9555,222,9671,9670,10183,6875,7160,9049,7576,7548,9049,7953,9949,8111,10211,10253,4716,9851,9146,9156,9882,8228,10803,10804,9638,10042,10805,1521,252,10416,2294,10787,11021,10133,10822,10632,10636,10937,9665,8007,9838,8995,10120,11221,11126,10228,11104,10661,10662,11162,8290,9566,10966,3336,3334,1371,11195,11216,9386,2913,10884,10495,11310,9889,11305,11413,10495,3712,10565,11019,7169,10238,1766,4464,9084,7546,11218,8586,8618,8682,9590,10551,10323,10322,11050,10332,9434,11242,9435,10331,10327,10325,8531,7986,11241,3884,3885,3888,11017,8971,6263,11458,11459,10292,6834,10328,6835,11467,11319,11167,11301,11299,11239,11301,11238,10176,11247,10466,11022,11254,11295,8345,9031,7869,5810,4714,11294,11296,11493,10804,3888,10606,3887,11269,11484,810,11051,11181,7610,7698,10922,10921,10923,11518,10821,10687,11435,6270,390,6789,7006,6076,6880,374,11601,11460,11422,8618,8682,9084,7172,9407,10238,11019,9920,10565,9084,7631,11218,7184,11016,5635,4386,7179,7189,6652,7178,7182,11240,510,8897,7770,7180,7772,7771,511,512,8946,6654,11013,6688,9473,11014,7181,7183,11354,7176,6653,7188,11419,11421,11422,7187,11418,11420,9407,9084,8682,10565,10238,9920,11146,11147,11148,11015,11082,11392,9437,11019,7998,4386,9129,11218,9671,9670,9669,8946,7186,11464,11493,11462,11463,8172,10750,11431,8007,6596,9233,10433,11017,8971,11430,11414,11429,11321,11498,8610,11446,5988,11521,10472,6521,11181,11487,11495,11427,1347,5339,5545,9084,9920,8682,11362,8681,11109,9958,8698,11468,848,9492,6216,10864,11269,11649,11349,11664,6497,11377,11378,11678,11069,8154,10042,9638,9220,10941,11493,11647,11349,11724,10895,8900,9638,9220,10569,10787,10856,10042,9904,9086,252,5373,11126,11678,6713,11237,51,4082,7550,8837,5193,3018,10367,8780,4401,10824,24,9896,11355,1770,7184,8306,6713,7185,11016,11647,11463,11464,7176,11488,11664,5255,11876,6800,28,10942,9492,11093,524,543,553,539,535,529,532,554,1097,2627,2627,6424,10250,10489,6719,653,7610,3515,6240,10455,7311,11726,7311,11726,5691,7697,526,531,542,524,1557,6385,8820,8007,549,6380,11301,11269,11247,11254,11022,735,11568,11650,11317,11318,10922,7083,550,547,11665,11791,11427,6527,10176,11051,11194,11244,11601,5383,3070,6354,10925,10923,810,10827,540,532,8788,394,8786,8858,6270,375,390,6076,548,6066,537,541,8880,8878,7693,11467,11611,8784,8787,391,11081,11079,11080,11878,11877,11602,4282,11296,11075,11876,11077,392,538,11903,11078,6076,10921,11173,11174,9523,11183,1765,10963,7922,11780,8085,9797,1768,6800,735,11432,3894,6520,11354,11877,9343,1766,11357) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC