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,10333,9897,8774,5421,7130,10381,6760,378,6914,368,9909,6925,6922,6423,6424,6422,6988,6425,10098,10502,6144,10257,9172,6922,6898,272,8820,6388,7311,7610,6600,6416,7922,8944,7881,9679,10232,6416,9383,10427,9867,6386,10232,10431,8566,6377,545,3887,537,7703,14,6200,7166,9902,8885,8693,8732,726,810,10613,9172,10387,10098,9734,10420,9905,9735,10638,10383,9601,10429,9909,9087,10643,8011,10645,8696,8232,10432,10644,10640,365,1411,4614,10421,10637,10334,2701,6332,10389,10433,9733,10520,10443,6381,6380,10431,7192,7190,10213,10222,10162,10725,9892,6385,7715,7014,6382,7040,2287,6933,9591,8665,10238,9903,10565,10044,2605,4178,6519,10561,5995,10043,7055,10387,10381,10390,10390,10488,6762,6916,6752,6759,6754,6760,6761,6928,6918,7162,323,11003,8696,8693,8656,4305,4299,9483,4299,9483,4292,4293,10920,57,7953,10823,10725,9590,11161,10199,9829,9533,9675,6759,6762,10649,10417,10487,10488,10813,6754,860,10431,10390,10388,6761,6760,10382,10387,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,7785,8168,11227,6368,7026,6854,9684,2349,2145,11247,11252,11091,8980,8982,8981,6607,8232,10822,5065,10921,10044,10045,10500,10389,10612,7891,6854,6220,10387,6419,11390,11079,7702,6426,8342,4714,6936,979,4614,6656,7569,9909,810,11562,11493,11564,10596,10045,11394,11590,5383,6426,10331,11677,11099,10388,6988,1990,8633,10387,10423,6925,11325,10390,860,10483,8,4401,10477,8267,6926,6759,8156,11080,9998,7493,10696,10032,7708,9386,11101,4923,9976,11519,6854,653,1990,3327,10940,10731,10731,5810,6966,4769,6715,10695,7680,6762,857,4435,9863,4716,1993) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC