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 'SELECT category_id FROM 3d_catalog_category WHERE parent_id = 28)) AND i.item_mo' at line 1 at /var/www/3dmag.org/ru/classes/modules/user/mapper/User.mapper.class.php line 1481
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 'SELECT category_id FROM 3d_catalog_category WHERE parent_id = 28)) AND i.item_mo' at line 1 [query] => SELECT i.item_date_add FROM 3d_catalog_item AS i, 3d_catalog_category AS c WHERE (i.category_id = c.category_id AND c.parent_id != 0 AND i.category_id = 28) OR (c.parent_id = 0 AND i.category_id IN (28, SELECT category_id FROM 3d_catalog_category WHERE parent_id = 28)) AND i.item_moderated = 1 ORDER BY i.item_id DESC LIMIT 1 [context] => /var/www/3dmag.org/ru/classes/modules/user/mapper/User.mapper.class.php line 1481 )