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,3896,9053,8271,6376,8272,6493,3884,6768,9500,532,3893,7985,9501,9592,3891,7986,9409,5951,2092,6609,3863,8251,714,7717,7269,4337,984,7287,6769,8063,579,2023,2023,8182,8220,7262,5732,6840,359,1524,7861,9057,6738,2546,2122,6197,397,8672,7068,9496,9502,9763,6740,6191,6931,6928,6938,9089,6936,653,6388,8387,9733,7703,6271,9734,6414,8349,9932,9735,6517,9850,6375,9852,6989,9729,9811,6234,6191,6531,8523,6519,2720,6372,726,6396,6966,6995,6376,9408,8244,6518,7196,9165,6371,7200,9909,9903,7845,6968,6604,9520,10194,7190,6383,10201,9905,10218,10264,9734,6937,6934,6423,6359,1616,979,8824,9892,6422,6519,6768,1266,7808,5297,1165,1411,810,2720,6518,5864,9149,10045,9165,9500,10044,6372,9432,1967,4714,9120,9119,6656,10336,10332,3625,10323,6146,1730,8243,10324,8341,9175,6151,7191,7610,10115,3542,1521,7610,7311,6371,5691,7697,7694,10419,10431,6989,7567,6271,7569,10330,10426,7614,9904,9220,10244,7985,10323,3885,3884,3893,3897,6493,3894,7695,10325,9592,10147,7696,10327,6740,24,9593,10333,6519,6372,7868,10645,6518,6371,10642,3442,6517,10103,10647,10328,10330,3515,4282,10563,6234,6375,7238,10637,10728,1704,10726,7608,8881,7693,6989,9383,7610,9867,5691,6197,7881,8943,6199,2522,8944,2520,9633,6519,4701,1779,5386,9555,4920,1767,5188,9493,6534,3883,6506,7985,6354,7986,7751,8618,8682,7973,450,8257,1770,1765,1771,10638,10646,10641,10642,10643,10640,9665,10544,9217,1768,1767,10565,10840,4580,10900,11083,9402,7019,6781,368,10098,376,387) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC