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,2458,6371,6426,6511,6512,6503,6234,6375,6519,4287,3442,6377,6743,6066,6371,6152,6190,6530,6506,5996,801,1537,3860,6869,6531,6527,7239,6528,5770,6529,6844,2635,8306,7846,8629,8695,2605,6261,7019,7019,7019,7019,8593,7024,9149,9149,2520,6359,5297,810,7632,5332,8719,8717,7599,1245,9424,8246,8318,6510,6511,6513,6514,7117,7650,7104,7150,2811,2789,2791,6376,6517,6743,6750,6746,4614,7610,7103,11085,6768,11082,8582,6199,6198,6200,9632,9631,11297,10445,3898,10981,6201,10948,9150,10947,8346,8345,7311,11429,9794,8228,1704,9076,4804,8771,7697,3515,7694,1666,7608,3442,7696,7646,7150,7868,7837,7834,382,6517,3863,4178,2573,8831,4227,8598,8317,8336,1704,4289,8874,5691,7693,6376,8241,6517,6375,6995,6234,6419,6388,8387,7610,7697,7694,7695,7696,3442,7608,3515,8244,1665,6175,7054,3891,1765,6270,8246,382,6995,8788,388,6076,6768,3892,6223,381,379,391,387,6376,6375,378,8878,376,387,392,393,385,6271,726,5864,6373,6527,6522,9182,8340,8325,6529,6530,8324,8242,8599,8322,8335,8334,6534,6536,6538,6532,8300,5827,6266,8315,8320,8319,8317,8318,8248,8971,6533,6505,6740,6191,6931,6928,6938,9089,6936,653,6388,8387,9733,7703,6271,9734,6414,8349,9932,9735,6517,9850,6375,9852,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,9499,10419,10431,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,653,3036,382,10417,6517,6376,6234,6376,6517,6234,10426,6271,2720,726,4282,4286,4305,4302,6505,2720,4296,4304,4291,4300) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC