Не выполняется select model_id, count(distinct c_uid) as cuid FROM st003.st_log WHERE date >= "2012-05-17 00:00:00" AND date <= "2012-05-17 23:59:59" AND user_agent NOT LIKE "%yandex%" AND user_agent NOT LIKE "%bot%" AND user_agent NOT LIKE "%slurp%" AND user_agent NOT LIKE "%findlinks%" AND user_agent NOT LIKE "%rambler%" AND user_agent NOT LIKE "%spider%" AND user_agent NOT LIKE "%squidclam%" AND user_agent NOT LIKE "%ichiro%" AND user_agent NOT LIKE "%yoono%" and model_id<> and part_id = AND model_id IS NOT NULL GROUP BY model_id ORDER BY cuid DESC LIMIT 1document.writeln("");