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 KATLI_ADR NOT IN (180,183,202,189,198,199,200,51,408,409,
SELECT * FROM mse_katalog WHERE KATLI_AKCE>0 AND KATLI_ID IN () AND KATLI_ADR NOT IN (180,183,202,189,198,199,200,51,408,409,284,278,293,295,265,248,241,398,315,231,325,254,287,280,285,242,412,416,475,311,286,328,297,282,277,249,252,145,303,401,402,283,313,329,264,246,240,229,272,320,271,228,130,209,314,446,141,140,138,137,485,477,411,410,157,154,159,161,366,489,458,235,267,279,120,258,233,490,226,353,327,316,237,281,361,256,470,158,153,160,155,330,230,273,323,115,255,173,294,406,407,121,259,473,251,289,266,122,93,274,292,312,100,478,146,488,487,131,65,354,355,356,357,358,263,247,449,112,244,236,124,483,291,298,299,300,301,128,276,288,253,250,234,275,71,98,117,445,426,118,119,296,486,491,481,385,87,213,102,484,147,212,84,99,290,232,326,324,225,270,257,64,405,403,404,476,260,367,369,86,85,178,66,101,474,472,471,238,447,227,261,268,223,172,479,480,239,224,321,269,206,151,262,482,322,243,170) ORDER BY KATLI_PORADI DESC LIMIT 0,9