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 'SEsLECT nd.id AS ARRAY_KEY, nd.id, nd.*, i.weight, i.node_id, i.price_purchase, ' at line 1 at /home/www/lispo.com.ua/app/modules/catalogue/catalogue.php line 3519
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 'SEsLECT nd.id AS ARRAY_KEY, nd.id, nd.*, i.weight, i.node_id, i.price_purchase, ' at line 1
    [query] => SEsLECT nd.id AS ARRAY_KEY, nd.id, nd.*, i.weight, i.node_id, i.price_purchase, i.is_visible, i.price_sale, i.price_previous, i.brand_id, i.group_id, CONCAT("node/",i.node_id) as url, g.ua_title as group_title, nd.ua_title AS title, nd.ua_body AS body,
                                                nd.ua_teaser AS teaser, nd.ua_meta_description AS meta_description, nd.ua_meta_html AS meta_html,
                                                nd.ua_meta_keywords AS meta_keywords,
                                                nd.ua_logtext AS logtext,
                                                nd.ua_title AS ru_title FROM inventory i, node nd, groups g WHERE i.node_id = nd.id  AND nd.is_moderated = 1 
                    AND i.group_id  = g.id  
                     AND i.brand_id = 23    AND i.id IN ('-1')    AND i.weight > 0    AND i.is_visible = 1  AND nd.time_post < 1719407499 ORDER BY i.weight DESC, nd.time_post DESC LIMIT 0, 12
    [context] => /home/www/lispo.com.ua/app/modules/catalogue/catalogue.php line 3519
)