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,7265,7250,7674,7089,7271,7093,7666,8041,8049,7077,7077,8071,8071,7264,7264,7108,8211,8044,7084,7084,8396,8537,7095,8397,8067,8069,8069,8642,8285,8285,8282,8282,8282,8282,7241,8368,8770,8047,7287,7906,8419,8058,7101,7101,7660,7660,7660,7096,7071,9187,8087,8087,8087,8087,8908,8908,9574,7280,7657,8475,9293,9293,9158,7246,8111,9747,8368,7292,8212,7069,9933,5052,5052,8743,9400,9205,9205,5066,5066,8885,7671,4019,10272,7653,9844,9048,8410,8071,9739,8404,130,10510,9563,8204,9539,5961,458,9399,9444,9148,8370,8651,8450,7277,9443,6181,10623,9367,9056,8373,10026,2761,10029,9445,9447,9083,9719,8438,10095,8367,1209,11413) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC