SELECT * FROM site_catalog WHERE catalog_active='Y' AND ((catalog_id='12' AND catalog_url IS NULL) OR (catalog_url='12'))Array ( [0] => 12 [catalog_id] => 12 [1] => 0 [catalog_owner] => 0 [2] => Y [catalog_active] => Y [3] => 12 [catalog_position] => 12 [4] => Экипировка [catalog_name] => Экипировка [5] => [catalog_url] => [6] => [catalog_body] => [7] => 28 [catalog_image] => Array ( [0] => Array ( [0] => 28 [file_id] => 28 [1] => 5 [folder_id] => 5 [2] => Экипировка.png [file_name] => Экипировка.png [3] => png [file_ext] => png [4] => 2015-07-08 15:34:06 [file_dt] => 2015-07-08 15:34:06 [5] => [file_desc] => [mime] => image/bmp [isize] => Array ( [0] => 50 [1] => 46 [2] => 3 [3] => width="50" height="46" [bits] => 8 [mime] => image/png ) [width] => 50 [w] => 50 [height] => 46 [h] => 50 [icon] => img [icon_path] => /admin/include/style/i/mime/img.png [fsize] => 2,6 Кб [path] => /files/flib/28.png [fpath] => /var/www/amssib/data/www/amssib.ru/files/flib/28.png [url] => /files/flib/28.png [furl] => /var/www/amssib/data/www/amssib.ru/files/flib/28.png ) ) [8] => [catalog_image_hover] => [9] => |53|,|56| [catalog_rows] => |53|,|56| )