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 id_static_page_group > 0 GROUP BY static_page.id ORDER BY static_page.orde' at line 1
Dotaz: SELECT SQL_CALC_FOUND_ROWS static_page_category.*, static_page.discussion_enable, static_page_attribute.title, static_page_attribute.caption, static_page_attribute.text, static_page_attribute.url, static_page_attribute.rewritename FROM static_page_category JOIN static_page ON static_page.id=static_page_category.id_static_page JOIN static_page_attribute ON static_page_attribute.id_static_page=static_page.id AND static_page_attribute.id_language=3 WHERE static_page.active=1 AND id_category IN () AND id_static_page_group > 0 GROUP BY static_page.id ORDER BY static_page.orderkoef DESC, static_page.insert_date DESC LIMIT 0, 6