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,9705,9710,9688,9697,9767,9692,9698,8965,2701,6971,6592,6971,6592,6971,6592,6971,6592,7733,8801,7741,9579,9718,5402,6832,6691,8968,2328,5371,1521,6645,5582,3346,850,4362,6831,1371,5996,421,6795,7602,4798,223,6890,5927,6785,7214,7639,9900,9386,6687,5543,5142,8876,9244,9362,9389,9387,7144,3728,10129,9497,10116,9951,10001,3081,10313,6130,10312,6889,1453,8828,10956,10517,10240,9959,7783,6633,3414,4834,4399,10818,10131,5947,9354,2467,3878,9545,104,156,7613,8219,11102,7920,2447,9828,10850,1308,11365,10269,10649,11290,3908,10666,4984,4424,11136,11454,9838,10955,661,1145,11588,11523,10934,11603,1460,1318,8539,6831,6742,9715,3884,6382,11218,6800,10565,7546,9905,9681,9708,9716,9713,1257,10817,7541,10817,7541,10455,9692,10455,9692,8506,8506,9716,9685,9681,11227,10455,11726,11727,11730,11731,10106,9717,9710,11809,11742,11808,11811,9715,11810,11729,11728,9713,9714,9688,9689,11855,9701,9692,9709,11732,9708,4,10107,9682,9686,9687,653,11811,10481,10722,9096,9687,6183,11734,10228) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC