1064 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 ') and r.date_added > '2014-12-31' and r.reviews_rating > 2 and rd.languages_id=1' at line 2
in:
[select count(r.reviews_id) as total from reviews_description AS rd LEFT JOIN reviews AS r ON(rd.reviews_id = r.reviews_id) WHERE r.products_id in (22346,22347,22348,22349,22351,22352,35544,40886,40898,40911,40912,40913,40914,40915,40925,40927,40928,52056,52057,52058,52059,52060,52061,52062,52063,52064,52065,52066,52067,52068,52069,52070,52071,52072,52073,52074,52075,52076,52077,52078,52079,52080,52081,52082,52083,52084,52085,52086,52087,52088,52089,52090,52091,52092,52093,52094,52095,52096,52097,52098,52099,52100,52101,52102,52103,52104,52105,52106,52107,52108,52109,52110,52111,52112,52113,52114,52115,52116,52117,52118,52119,52120,52121,52122,52123,52124,52125,52126,52127,52128,52129,52130,52131,52132,52133,52134,52135,52136,52137,52138,52139,52140,52141,52142,52143,52144,52145,52146,52147,52148,52149,52150,52151,52152,52153,52154,52155,52156,52157,52158,52159,52160,52161,52162,52163,52164,52165,52237,52240,52241,52242,52243,52245,52246,52247,52248,52249,52250,52251,52252,52253,52254,52255,52256,52257,52258,52259,52260,52261,52262,52263,52264,52265,52266,52267,52268,52269,52270,52271,52272,52273,52274,52275,52276,52277,52278,52279,52280,52281,52282,52283,52284,52285,52286,52287,52288,52289,52290,52291,52292,52293,52294,52295,52296,52297,52298,52299,52300,52301,52302,52303,52304,52305,52306,52307,52308,52309,52310,52311,52312,52313,52314,52315,52316,52317,52318,52319,52320,52321,52322,52323,52324,52325,52326,52327,52328,52329,52330,52331,52332,52333,52334,52335,52336,52337,52338,52339,52340,52341,52342,62309,63084,63088,63091,63093,63096,63099,63101,63104,63108,63110,63113,63117,63121,63125,63128,63131,63134,63137,63141,63144,63146,63150,63153,63155,63158,63161,63163,63166,63170,63172,63174,63178,63181,63183,63186,63189,63191,63194,63198,63200,63202,63205,63208,63210,63213,63216,63218,63221,63225,63227,63229,63233,63236,63238,63241,63244,63246,63249,63253,63255,63257,63260,63262,63264,63266,63268,63270,63272,63275,63277,63278,63280,63281,63283,63285,63286,63287,63289,63290,63291,63293,63294,63295,63297,63298,63299,63301,63302,63303,63305,63306,63307,63309,63310,63311,63313,63314,63315,63317,63318,63320,63322,63324,63327,63329,63331,63333,63335,63338,63340,63343,63345,63347,63349,63351,63353,63355,63357,63359,63361,63363,63364,63366,63368,63370,63372,63374,63376,63378,63380,63382,63383,63385,63387,63389,63391,63393,63395,63397,63399,63400,63402,63403,63405,63406,63407,63409,63410,63411,63413,63414,63415,63417,63418,63419,63421,63422,63423,63425,63426,63427,63429,63430,63431,63433,63434,63435,63437,63438,66701,66702,66703,66704,66705,66706,66707,66708,66709,66710,66711,66712,66713,66714,66715,66716,66717,66718,66719,66720,66721,66722,66723,66724,66725,66726,66727,66728,66729,66730,66744,66745,66746,66747,66748,66749,66750,66751,66752,66753,66754,66755,66756,66757,66758,66759,66760,66761,66762,66763,66764,66765,66766,66767,66768,66769,66770,66771,66772,66773,64194) and (r.country_id in() and r.date_added > '2014-12-31' and r.reviews_rating > 2 and rd.languages_id=1 or rd.languages_id=2) AND r.status = 1 AND r.check_status=1 and r.reviews_rating = 1]