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,8925,8911,2023,4724,5142,4258,7920,5373,8846,3625,1349,4652,7212,7126,1253,1127,5995,947,7102,916,7899,358,3647,176,7908,915,1385,1385,5947,1565,8220,7974,8110,7904,7605,2063,3250,7032,6175,800,5915,6832,8393,6210,8055,8055,7833,5848,6588,7903,1662,7023,2269,5688,8942,6618,2182,8948,5421,1385,8554,6785,6785,126,7585,7175,9878,9312,9874,8235,8036,9745,7250,7250,7250,9873,9873,9744,9744,9745,8368,8439,9877,9875,9876,9957,9573,10623,10625,10419,9882,10644,7935,10624,10562,10799,10009,10799,9747,9748,9794,10849,10970,10947,10332,10630,10948,10726,11241,10600,10600,10598,10601,10596,9067,10612,6840,11091,8168,11069,11080,11075,11079,11076,11078,545,549,11085,548,11077,9189,9076,9794,4989,4997,970,2137,11095,8782,8771,6740,9052,7175) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC