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,1313,6563,6978,7024,6189,1407,1441,6181,6546,1165,4450,3073,6654,3115,6204,7748,360,444,3041,6732,8118,4986,5635,778,8358,7077,8222,8738,8765,3070,1537,7835,9052,435,8439,7304,6870,8526,8526,8526,8048,10010,10377,10591,10592,10467,10587,10692,9300,8783,820,4682,2915,1462,6561,6633,4419,5897,5998,6003,6195,5956,6896,6587,6843,6638,6102,1242,1591,5912,2749,7046,6718,4971,6559,5376,542,7565,7565,7565,7565,7565,7565,7565,7565,7565,4154,11238,3389,7986,7987,551,533,6693,6774,6395,6863,5303,6845,6104,2608,6006,6006,6977,6239,7215,2761,8278,8278,3865,3913,7307,6715,7307,6715,7304,3702,317,1990,6700,6693,8108,7861,8196,8196,6138,6138,7999,7998,5548,5548,5548,10000,9865,1787,9834,9834,9834,9834,9834,10056,9386,7773,1369,6584,6402,6069,1272,9376,8689,9405,6715,8389,1885,5995,801,156,3236,7869,5795,3525,4913,5639,6311,9788,9497,9857,9951,4156,2453,9959,9778,9543,9637,9543,9637,9868,6010,9868,6010,9868,6010,5269,754,5269,754,3878) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC