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,7503,10810,11194,11586,10551,10336,7167,7165,10325,10322,10331,7170,10599,9176,4463,9631,9632,7164,9232,10332,4486,8662,8164,10427,7167,4464,10613,8167,10489,1767,7677,1771,1766,1411,6359,1765,726,10602,4426,7600,6762,6759,7676,7055,8166,10198,10647,10638,10643,365,10594,10641,10645,4464,7169,10600,10601,6416,6386,7168,10642,6743,6270,6191,6426,10381,10383,10499,10613,10173,8340,7199,10729,8967,6545,6423,10549,6925,9538,10454,8132,1300,9190,8964,6197,9534,8003,6332,8278,10727,10563,10559,9231,10646,10812,9892,10044,10426,6212,7843,10417,10489,7844,7845,3890,10545,10389,7196,384,10381,6443,10520,8579,10040,6517,6216,8242,10925,7704,10923,10729,10560,10199,10558,10557,10200,3894,3957,1764,10823,8882,11080,4302,8274,8250,11091,4512,2555,8696,1086,4316,5003,10318,2039,4774,9386,2998,10486,6535,9493,11153,7299,10045,6143,10935,9903,10828,4827,5208,4645,9418,6986,10513,11106,10820,11198,11246,11067,11219,11230,10483,10924,11068,11071,8827,11069,11254,11296,11270,10921,11238,10931,11109,11306,6648,10930,6423,10642,4299,9591,11048,9888,2605,10923,10922,8002,10644,10561,7762,4293,11156,4287,11317,8596,7676,10201,11320,10645,11321,11158,6521,10562,10647,10643,7987,3070,6354,11008,9535,6689,3892,3071,3073,2643,10937,11324,11152,9147,11432,11467,11479,4146,10426,4424,3066,6118,6759,6762,10649,10417,10488,10813,6754,860,10431,10390,10388,6761,6760,10382,10387,10386,857,6913,7162,6840,6926,6925,9735,10445,6381,6391,6914,6763,6915,9165,8693,8156,8267,7200,7199,7196,7198,7194,10996,10797,7195,6917,6988,6922,8267,10599,10600,10598,9087,10505,11077,10445,11078,11079,6935,11080,10603,11075,6916,6933,6936,11077,3277,6928,6929,6934,7190,7191,7192,6937,6918,6385,673,9178,10597,10593,6421,6423,6920,7042,6424,6425,11103,6426,10486,7055,10389,10426,10428,10381,10957,10222,10264,10421,9176,9177,9190,10167,10384,10420,10423,10425,8987,6491,6417,6517,11091,6426,8303,10387,10388,10264,10264,10445,10593,10595,10595,10382,10594,10431,653,6372,6518,6521,6519,6371,3891,10925,173,4304,11299,8244,8340,1769,10801,11158,8334,9669,9593,10335,9670,9671,9131,9672,11218,9673,9669,9591,9670,11302,9671,8717,8681,9473,10298,9475,10390,10383,6922,6759,11054,8156,4287,11301,10800,11414,6426,8244,8598,9428,10821,11046,11429,9415,10920,11407,1730,10332,6934,6423,10324,7546,11466,10840,9414,9407,6426,8245,11394,10522,8246,10559,8682,11405,1266,8310,11203,11405,11583,11430,11209,9147,11207,11205,3879,6425,11429,8873,10214,11080,11206,11204,11081,391,8649,8872,11582,9184,8883,11564,11581,10216,6521,9113,11204,8696,11078,11079,9231,11406,9111,9112,10215,6424,8655,9588,11139,10152,10151,11076,11077,8665,9414,10158,10560,9587,9908,9119,11075,5508,6762,6761,6759,6926,6761,6760) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC