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,4178,858,6545,6840,6763,6764,6765,3090,6144,6753,6761,6762,6759,6760,6840,6424,6752,6719,3609,6750,6742,6391,6746,6744,6749,6745,6910,6914,6913,3926,6422,6758,6421,6935,6424,6425,6932,6938,6925,6926,6912,6427,6423,6763,6764,6988,6934,6937,6928,6758,6757,6756,6391,6753,3247,6917,6719,6763,6764,6765,6762,6761,6414,2282,6932,6754,6752,6423,6935,6759,6925,6760,6427,6757,6918,6912,2274,6910,6938,6423,6424,6926,2275,6426,2282,6756,6191,6758,6763,6756,6932,6926,2274,6757,6935,2275,6423,6420,2282,3036,6967,389,6961,6966,1730,7897,1303,6951,3896,7266,8831,6197,8529,6743,8165,979,8585,8833,8833,3702,3702,233,2035,245,254,1005,1209,842,1993,7920,7149,8220,8440,8514,8483,8547,3888,3892,9220,9300,9284,9258,9298,2265,9354,8183,9030,2849,6842,5222,5331,6842,8683,737,377,551,9322,7067,7011,6988,3863,7060,7060,9520,9517,1779,9515) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC