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,6593,4438,3865,1302,3337,7666,7664,7092,7100,7268,6798,6548,7245,7112,1173,6715,6102,2417,8044,6127,7074,3248,2342,374,385,7085,8205,7271,7123,8198,8469,7089,8438,6807,8740,8577,8640,1296,8418,8447,8447,368,6076,8568,8362,8362,7251,7251,8424,6614,8203,7095,8395,8251,6082,7656,8201,8201,7068,8408,8207,8199,8471,8646,8537,8282,9203,8724,8396,7660,5872,5872,7101,8768,7944,7944,7659,9158,9158,9199,8570,8737,8737,9658,8058,8269,8269,10185,10185,10185,10051,10051,8268,7932,9889,7103,7097,10451,10399,10400,10401,10228,7105,9140,7296,6738,7139,7149,6714,7215,6006,5995,7605,3337,7213,7966,7218,6003,6583,6131,7217,7599,1073,7110,7121,4199,952,6632,7674,5947,4234,2522,8040,2706,7261,7024,737,2658,4405,2300,3236,3165,217,7147,501,9554,10733,10644,7772,510,11414,1360,7457,6242,6242,6409,391,376,6968,6962,6966,10925,2856,3247,4845,8831,5742,1462,6388,2071,6396,6104,6845,9104,8165,5719,8926,3863,5742,3334,1973,5717,2145,5733,6593,6814,3334,3338,7012,7238,3248,2069,1302,3402,3402,3402,1270,5770,5770,5806,5806,2643,2643,6815,2555,2384,2384,6865,6865,582,9324,582,2635,9865,9866,5719,7304,6140,4769,2474,5718,5718,5718,8563,8353,8353,8725,7903,8861,3889,8858,11358,1983,1358,11099,653,11811,10481,10722,9096,9687,11734,10228,9694) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC