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,7987,2474,993,7986,990,2331,8220,947,7761,3863,3863,9603,2749,6578,6578,9787,9787,5484,5484,5484,2986,2986,2946,9667,754,148,10229,6710,1461,1917,179,10278,9655,2761,4029,10566,10761,6953,3872,10786,961,10649,10346,6953,9855,10905,8358,10892,9386,10394,4405,9936,993,10505,2117,8947,9463,10339,10653,10649,7003,9536,10683,10518,10002,9900,10368,4769,5770,4801,7160,2521,2522,5647,10526,11266,8223,9116,5839,10368,10974,9983,10904,11443,11442,9669,9670,3849,3564,10719,11101,10316,10736,2164,3282,11657,11673,10093,11451,11659,11658,11660,10375,11714,11314,11681,11703,11494,9471,41,9897,582,11620,10886,11346,9868,9942,7027,11486,10840,8108,11815,9945,10116,9386,10056,9993,1215,10239,8358,10247,10238,10212,4121,1988,990,8780,7134,10229,952,10836,10466,2261,10149,4778,4512,11022,10733,11646,501,28,9031,5609,10818,11644,9985,7610,11792,840,10909,9451,9130,8950,9471,8434,9463,3437,9864,8839,9116,3302,9467,9933,1215,10129,8995,9987,446,1768,10141,9092,9340,675,10073,9942,5769,5551,10314,9831,9897,6362,10048,10047,9938,9834,8966,9710,8305,9451,933,6660,8822,8684,10935,10549,5334,9129,7903,10283,10892,8089,9086,9904,7965,7964,9785,4716,6961,9361,5719) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC