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,4178,858,6545,6763,6764,6765,3090,6144,6753,6761,6762,6759,6760,6424,6752,6719,3609,6750,6742,6391,6746,6744,6749,6745,6911,6910,6914,6913,3926,6422,6758,6421,6935,6424,6425,6932,6938,6925,6926,6912,6427,6423,6763,6764,6988,6934,6937,6151,1327,458,6616,3549,6103,464,3428,5334,3997,5882,6798,6763,1663,6157,2998,3449,3069,6427,3389,6491,3898,452,222,4913,6600,6855,6388,2507,4765,3254,3169,6151,2684,6905,6129,464,4659,6181,2164,735,393,6894,379,6146,2737,1049,397,7195,7199,8656,9088,6523,3327,8387,6545,8305,6604,8592,6616,6719,6700,9151,9190,3879,8097,6521,7400,9502,9647,9502,6866,6542,2520,5371,2261,6869,1769,6869,6628,6754,857,1516,1245,1616,2696,6804,4426,7020,7092,7082,7095,7121,7097,4490,958,7085,7093,6813,1165,6118,5951,2092,6609,3863,8251,714,7717,7269,4337,984,7287,6769,8063,579,2023,2023,8182,8220,7262,5732,359,1524,7861,9057,6738,2546,2122,6197,397,9499,8672,7068,9496,9502,9763,6593,7619,7037,5088,5184,9831,8650,6918,7680,10381,6146,6151,6916,6426,9165,10432,7870,8157,10695,10136,10600,10600,10598,10601,10596,9067,10612,11091,8168,11069,11080,11075,11079,11076,11078,545,549,11085,548,11077,9189,9076,9794,4989,4997,970,2137,11095,8782,8771,6740,9052,8940,7175,11948,6759,6762,10649,10417,10487,10488,10813,6754,860,10431,10390,10388,6761,6760,10382,10387,10386,857,6913,7162,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) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC