Warning: Invalid argument supplied for foreach() in /home/burgteat/www/www/application/controllers/postanovkicontroller.php on line 43
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 pl.lang_id = 1 GROUP BY p.id ORDER BY p.sort ASC, p.post_date DESC,' at line 10SQL: SELECT p.id, DATE_FORMAT(p.post_date, '%d') AS post_day, DATE_FORMAT(p.post_date, '%b') AS post_month, DATE_FORMAT(p.post_date, '%d %b %Y') AS post_date ,pl.post_title, pl.post_text, pi.path, UNIX_TIMESTAMP(p.post_date) AS rss_date, p.category_id, p.post_url, p.post_op, p.post_aop, DATE_FORMAT(p.post_date_from, '%W, %d %M %Y %H:%i') AS post_date_from, DATE_FORMAT(p.post_date_to, '%W, %d %M %Y %H:%i') AS post_date_to FROM post AS p LEFT JOIN post_lang AS pl ON p.id = pl.post_id LEFT JOIN post_image AS pi ON p.id = pi.post_id LEFT JOIN user AS u ON p.user_id = u.user_id WHERE p.category_id = AND pl.lang_id = 1 GROUP BY p.id ORDER BY p.sort ASC, p.post_date DESC, p.id DESC