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,9300,9300,9300,9300,9300,9936,9191,7207,8613,8780,9072,4923,10742,9835,7846,1609,6646,6723,6723,9498,9498,6393,6393,9547,1772,6186,6186,8686,8686,1983,9843,8434,6000,8434,9849,10310,9849,10228,9116,7900,8780,8681,9538,10817,7541,10817,7541,9692,9692,9694,8506,9694,8506,9849,9849,653,7704,6082,10613,11403,8255,6953,5371,104,8869,6181,9135,9049,7774,4395,4146,10349,9543,2897,10228,9405,1770,9758,10339,788,10309,11010,120,10754,10985,9543,4659,9340,4568,1782,10000,9770,9714,9753,9863,9701,4435,11298,10649,6548,11347,10892,2467,2989,11454,10780,11622,3327,11623,11227,9765,5269,11497,156,11621,11752,11751,11101,11748,11325,713,10670,7374,10940,1823,9257,152,9704,1345,5024,12023,9716,9685,9681,11227,11726,11727,11730,11731,10106,9717,9710,11809,11742,11808,11811,9715,11810,11729,11728,9713,9714,9688,9689,11855,9694,9701,9692,9709,11732,9708,4,10107,9682,9686,9687,1097,2627,2627,6424,10250,10489,6719,653,7610,6836,3515,6240,7311,11726,7311,11726,5691,7697,1250,11728,10106,11727,9856,9856,3702,3702,9985,8836,10262,6780,10239,9949,9647,6603,6616,6579,6580,11906) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC