SQL Error: 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 () AND id<>1032 AND status=1 ORDER BY rtype,() LIMIT 20' at line 5 at /home/virtwww/w_civisbook-ru_23a7597a/http/dreamedit/includes/class.Publications.php line 191
Array
(
    [code] => 1064
    [message] => 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 () AND  id<>1032  AND status=1 ORDER BY rtype,() LIMIT 20' at line 5
    [query] => SELECT DISTINCT id,name,name2,avtor,year,`hide_autor` AS avthide,
        IF(substring(name,1,1)<>'«',INTERVAL(191,ASCII(name)),INTERVAL(191,ASCII(substring(name,2)))) as lang,
        IF(substring(rubric2,1,1)='r' OR substring(rubric2d,1,1)='r' OR  substring(rubric2_3,1,1)='r' OR
        	substring(rubric2_4,1,1)='r' OR  substring(rubric2_5,1,1)='r','retro','actual') AS rtype
        FROM publ WHERE () AND () AND  id<>1032  AND status=1 ORDER BY rtype,() LIMIT 20
    [context] => /home/virtwww/w_civisbook-ru_23a7597a/http/dreamedit/includes/class.Publications.php line 191
)