SELECT COUNT(b_id) AS _count FROM board,comp,board2otrasl WHERE comp_id=b_comp_id AND b_kill_date >= NOW() AND b2o_board_id=b_id AND b2o_otrasl_id='338' AND b_comp_id NOT IN (,,,,,,,2474,2474,2474,2474,2474,2474,2474,248,248,248,248,248,248,248,2914,2914,2914,2914,2914,2914,2914,292,292,292,292,292,292,292,3390,3390,3390,3390,3390,3390,3390,34,34,34,34,34,34,34,3694,3694,3694,3694,3694,3694,3694,396,396,396,396,396,396,396,4012,4012,4012,4012,4012,4012,4012,402,402,402,402,402,402,402,4048,4048,4048,4048,4048,4048,4048,408,408,408,408,408,408,408,4315,4315,4315,4315,4315,4315,4315,44,44,44,44,44,44,44,5009,5009,5009,5009,5009,5009,5009,986,986,986,986,986,986,986)
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 ',,,,,,2474,2474,2474,2474,2474,2474,2474,248,248,248,248,248,248,248,2914,2914,2' at line 1