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 '1,7,8,10,14,15,18,20,21,24,26,27,30,31,32,33,34,37,38,45,47,48,49,50,51,52,53,54' at line 5
in:
[select count(*) as total FROM products p LEFT JOIN specials s ON (s.products_id = p.products_id) LEFT JOIN products_description pd ON (pd.products_id = p.products_id) WHERE p.products_status = '1' AND ( (s.status = 1 AND p.products_id = s.products_id) OR (p.master_categories_id IN (109,137,,1,7,8,10,14,15,18,20,21,24,26,27,30,31,32,33,34,37,38,45,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,63,71,72,73,74,75,78,79,80,81,82,83,84,85,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,118,119,121,122,123,124,125,126,127,128,130,131,132,133,134,135,136,137,138,139,141,142,143,144,145,146,147,148)) ) AND p.products_id = pd.products_id AND pd.language_id = 1 ]