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,8363,7655,8928,9601,8063,7971,5784,8908,10768,10272,10843,10609,10226,8446,7572,8653,7077,1492,8097,8290,1591,9495,7971,9132,8393,1766,1769,1768,1767,1765,6740,446,1345,9569,9622,9158,7659,9621,8477,9622,9660,9563,9745,8769,8399,7869,8288,4512,6642,7241,7272,7286,9813,8475,8049,9562,9767,9770,9247,9888,10040,10272,8059,6324,9093,7774,8955,7989,9771,2342,9609,2967,10630,10689,8151,9319,10696,9647,10451,10741,10656,7289,8202,7671,8358,10679,11441,11225,10692,11331,11533,8050,9748,10274,9773,10273,10629,10869,7962,3823,8087,7081,10480,10651,9647,9985,9959,10655,9389,9387,6633,9031,2506,10466,1029,2867,10914,7602,6905,2658,10814,9757,9385,4862,8281,5,10864,10974,2867,10805,10804,9632,9362,11113,9125,1029,8578,11222,10738,11258,11072,2009,8358,11271,7909,5959,915,1029,10937,10464,3647,11267,11312,9403,5810,11448,9763,5962,9062,8884,186,10655,7785,8281,6348,6719,9394,6700) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC