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,6534,8682,6505,6532,8088,446,4178,2488,7734,694,693,7569,5389,8591,2785,2795,2783,2786,1266,8247,8874,8245,8943,8944,8241,8248,7546,5572,1770,1770,1770,1770,7631,7551,8192,8192,5454,675,6880,675,1368,848,7580,2605,5386,7599,5332,1411,1266,5297,1770,7808,7677,8682,8719,8717,1765,1771,1767,1769,1768,1766,8718,2522,6538,6537,6536,6535,6534,1765,1771,8585,8586,7870,8584,7546,8618,8682,1769,1768,1766,8816,2522,6689,7753,7752,8088,8627,3071,6388,374,7704,858,1557,857,6373,6382,1711,389,386,9156,8986,6391,673,2701,275,6418,6418,1711,1711,7040,8654,7198,6763,8881,8989,9088,9172,9173,857,1665,9782,9968,730,730,9176,9176,9177,8593,8826,7188,7176,7162,8245,8241,9292,8083,8742,8658,9056,9158,8794,9457,8418,8419,8425,9057,9530,9580,9844,9874,9028,9536,8665,6381,8387,8654,10257,6505,6533,6536,6534,324,788,8770,11124,11798,8055,10920,8747,6879,11611,4297,2778,2816,2823,2787,2791,2779,4463,2820,2818,6443,6489,2781,8589,2811,2785,2812,2815,2822,2780,2789,2817,2786,2808,2802,2794) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC