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,5822,3425,2182,7147,7147,7218,7218,7218,7218,8739,7646,7646,7646,7297,8520,5647,8816,3885,3760,9321,8247,8730,3327,6845,9363,6971,8901,8520,9402,9552,9951,947,9600,7233,8726,8615,4337,4233,4209,3904,2025,9373,8193,5516,249,9052,4234,1215,10212,9879,10526,9453,8922,1439,6104,10739,10765,162,8995,6809,9614,9234,8888,10127,10870,4665,5013,3989,10549,10634,10636,8834,11141,8010,10355,11020,11028,10964,11122,11220,8681,9771,320,10292,10072,10219,10273,10294,10211,9338,10142,10061,10291,10041,6633,10291,10320,10164,10078,1308,10319,9822,9277,10397,10548,10060,10548,8610,6870,8951,10480,10651,9647,9985,9959,10655,9389,9387,6633,9031,2506,10466,1029,2867,10914,7602,6905,2658,10814,9757,9385,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,10441,3647,11267,11312,9403,5810,11448,9763,5962,9062,8884,186,10655,7785,8281,6348) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC